[5765] in Athena Bugs
daemon@ATHENA.MIT.EDU (John Carr)
Sat Aug 18 17:21:53 1990
To: bugs@ATHENA.MIT.EDU
Date: Sat, 18 Aug 90 17:21:38 EDT
From: John Carr <jfc@ATHENA.MIT.EDU>
The following should be placed in /usr/include/stdarg.h on the RT.
#ifndef _STDARG_H
#define _STDARG_H
#ifndef __HIGHC__
#error stdarg requires High C
#endif
typedef int *va_list;
#define va_start(ap, arg) ap = ((int *)&arg) + ((sizeof(arg) + 3) / 4)
#define va_end(ap)
#define va_arg(ap, type) ((type *)(ap += (sizeof(type)+3)/4))[-1]
#endif /* _STDARG_H */