2001-11-11 05:54:21 +03:00
|
|
|
#ifndef _STDARG_H
|
|
|
|
#define _STDARG_H
|
|
|
|
|
|
|
|
typedef char *va_list;
|
|
|
|
|
|
|
|
/* only correct for i386 */
|
2002-08-31 16:43:53 +04:00
|
|
|
#define va_start(ap,last) ap = ((char *)&(last)) + ((sizeof(last)+3)&~3)
|
|
|
|
#define va_arg(ap,type) (ap += (sizeof(type)+3)&~3, *(type *)(ap - ((sizeof(type)+3)&~3)))
|
2001-11-11 05:54:21 +03:00
|
|
|
#define va_end(ap)
|
|
|
|
|
2001-11-11 21:01:29 +03:00
|
|
|
/* fix a buggy dependency on GCC in libio.h */
|
|
|
|
typedef va_list __gnuc_va_list;
|
2003-01-06 23:22:23 +03:00
|
|
|
#define _VA_LIST_DEFINED
|
2001-11-11 21:01:29 +03:00
|
|
|
|
2001-11-11 05:54:21 +03:00
|
|
|
#endif
|