aboutsummaryrefslogtreecommitdiff
path: root/stdarg.h
blob: 5e5d0286c1d1402d3b3ec280cedbfcc7c4cc553c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef _STDARG_H
#define _STDARG_H

typedef char *va_list;

/* only correct for i386 */
/* XXX: incorrect for type size different than 4 bytes*/
#define va_start(ap,last) ap = ((char *)&(last)) + sizeof(int); 
#define va_arg(ap,type) (ap += sizeof(int), *(type *)(ap - sizeof(int)))
#define va_end(ap)

/* fix a buggy dependency on GCC in libio.h */
typedef va_list __gnuc_va_list;

#endif