9 #ifndef _VA_LIST_DEFINED
10 typedef char *va_list;
11 #define _VA_LIST_DEFINED
15 #define va_alist __va_alist, __va_alist2, __va_alist3, __va_alist4
16 #define va_dcl int __va_alist, __va_alist2, __va_alist3, __va_alist4;
17 #define va_start(list) list = (char *) &__va_alist
19 #define va_arg(list, mode) ((mode *)(list =\
20 (char *) ((((int)list + (__builtin_alignof(mode)<=4?3:7)) &\
21 (__builtin_alignof(mode)<=4?-4:-8))+sizeof(mode))))[-1]
23 #define _INTSIZEOF(n) ( (sizeof(n) + sizeof(int) - 1) & ~(sizeof(int) - 1) )
24 #define va_dcl va_list va_alist;
25 #define va_start(ap) ap = (va_list)&va_alist
26 #define va_arg(ap,t) ( *(t *)((ap += _INTSIZEOF(t)) - _INTSIZEOF(t)) )
27 #define va_end(ap) ap = (va_list)0