[6448] in Athena Bugs

home help back first fref pref prev next nref lref last post

daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Sat Nov 24 13:25:47 1990

To: bugs@ATHENA.MIT.EDU
Date: Sat, 24 Nov 90 13:25:35 EST
From: John Carr <jfc@ATHENA.MIT.EDU>


I sent in an RT <stdarg.h> a while ago, but it doesn't appear to be in
the changes notes file:

#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 */


home help back first fref pref prev next nref lref last post