moved ELF stuff to tccelf.c - fixed #include and #line parsing - removed size limit...
[tinycc.git] / stdarg.h
blob5e5d0286c1d1402d3b3ec280cedbfcc7c4cc553c
1 #ifndef _STDARG_H
2 #define _STDARG_H
4 typedef char *va_list;
6 /* only correct for i386 */
7 /* XXX: incorrect for type size different than 4 bytes*/
8 #define va_start(ap,last) ap = ((char *)&(last)) + sizeof(int);
9 #define va_arg(ap,type) (ap += sizeof(int), *(type *)(ap - sizeof(int)))
10 #define va_end(ap)
12 /* fix a buggy dependency on GCC in libio.h */
13 typedef va_list __gnuc_va_list;
15 #endif