Pristine Ack-5.5
[Ack-5.5.git] / lang / cem / libcc.ansi / headers / stdarg.h
1 /*
2  * stdarg.h - variable arguments
3  *
4  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
5  * See the copyright notice in the ACK home directory, in the file "Copyright".
6  */
7 /* $Id: stdarg.h,v 1.5 1994/06/24 11:41:14 ceriel Exp $ */
8
9 #if     !defined(_STDARG_H)
10 #define _STDARG_H
11
12 typedef char    *va_list;
13
14 #define __vasz(x)               ((sizeof(x)+sizeof(int)-1) & ~(sizeof(int) -1))
15
16 #define va_start(ap, parmN)     (ap = (va_list)&parmN + __vasz(parmN))
17 #define va_arg(ap, type)        (*((type *)(void *)((ap += __vasz(type)) - __vasz(type))))
18 #define va_end(ap)
19
20 #endif  /* _STDARG_H */