diff options
| author | bellard <bellard> | 2001-11-11 02:54:21 +0000 |
|---|---|---|
| committer | bellard <bellard> | 2001-11-11 02:54:21 +0000 |
| commit | b536ac306846dcb1639bb15bda1131063103458c (patch) | |
| tree | 6c3ffd2e5f88acf78c9f8a01b61168101c4abed7 /stdarg.h | |
| parent | 507a221f7e6967cff747858b05e5644a7a7795bb (diff) | |
| download | tinycc-b536ac306846dcb1639bb15bda1131063103458c.tar.gz tinycc-b536ac306846dcb1639bb15bda1131063103458c.tar.bz2 | |
added std libs
Diffstat (limited to 'stdarg.h')
| -rw-r--r-- | stdarg.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/stdarg.h b/stdarg.h new file mode 100644 index 0000000..67b9c71 --- /dev/null +++ b/stdarg.h @@ -0,0 +1,11 @@ +#ifndef _STDARG_H +#define _STDARG_H + +typedef char *va_list; + +/* only correct for i386 */ +#define va_start(ap,last) ap=(char *)&(last); +#define va_arg(ap,type) (ap-=sizeof (type), *(type *)(ap)) +#define va_end(ap) + +#endif |
