From: ceriel Date: Wed, 20 Feb 1991 14:53:31 +0000 (+0000) Subject: Added varargs.h X-Git-Tag: release-5-5~1231 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=12f4a430b02a1c0aeb429863719d3e076f6dfe61;p=ack.git Added varargs.h --- diff --git a/lang/cem/libcc.ansi/headers/.distr b/lang/cem/libcc.ansi/headers/.distr index ddba6c965..629c1085b 100644 --- a/lang/cem/libcc.ansi/headers/.distr +++ b/lang/cem/libcc.ansi/headers/.distr @@ -19,4 +19,5 @@ stdio.h stdlib.h string.h time.h +varargs.h sys diff --git a/lang/cem/libcc.ansi/headers/varargs.h b/lang/cem/libcc.ansi/headers/varargs.h new file mode 100644 index 000000000..6e3ba9bef --- /dev/null +++ b/lang/cem/libcc.ansi/headers/varargs.h @@ -0,0 +1,12 @@ +/* + * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. + * See the copyright notice in the ACK home directory, in the file "Copyright". + */ +/* $Header$ */ + +typedef char *va_list; +# define __va_sz(mode) (((sizeof(mode) + sizeof(int) - 1) / sizeof(int)) * sizeof(int)) +# define va_dcl int va_alist; +# define va_start(list) (list = (char *) &va_alist) +# define va_end(list) +# define va_arg(list,mode) (*((mode *)((list += __va_sz(mode)) - __va_sz(mode))))