ack/lang/cem/libcc.ansi/headers/stdarg.h

21 lines
541 B
C
Raw Normal View History

1989-05-16 13:13:53 +00:00
/*
* stdarg.h - variable arguments
*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
1994-06-24 14:02:31 +00:00
/* $Id$ */
1989-05-16 13:13:53 +00:00
1989-12-18 14:00:32 +00:00
#if !defined(_STDARG_H)
#define _STDARG_H
1989-05-16 13:13:53 +00:00
1989-12-18 14:00:32 +00:00
typedef char *va_list;
1989-05-16 13:13:53 +00:00
1989-12-18 14:00:32 +00:00
#define __vasz(x) ((sizeof(x)+sizeof(int)-1) & ~(sizeof(int) -1))
1989-05-16 13:13:53 +00:00
1989-12-18 14:00:32 +00:00
#define va_start(ap, parmN) (ap = (va_list)&parmN + __vasz(parmN))
#define va_arg(ap, type) (*((type *)(void *)((ap += __vasz(type)) - __vasz(type))))
1989-09-29 15:46:33 +00:00
#define va_end(ap)
1989-12-18 14:00:32 +00:00
#endif /* _STDARG_H */