summaryrefslogtreecommitdiff
path: root/xc/util/misc/rt.stdarg.h
blob: 99cc06e7d2966f84351248ba0f684886293b21bd (plain)
1
2
3
4
5
6
7
8
/* $XConsortium: rt.stdarg.h,v 1.1 93/12/06 16:24:27 kaleb Exp $ */
#ifndef _STDARG_H
#define _STDARG_H
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