kern

view src/klibc/stdarg.h @ 38:e6f75f91e606

- added makefile pattern to produce assembly output from c source files. - removed a commented out previous version of the gmtime_r function in klibc/time.c
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 10 Jun 2011 23:19:25 +0300
parents
children
line source
1 #ifndef STDARG_H_
2 #define STDARG_H_
4 /* Assumes that arguments are passed on the stack 4-byte aligned */
6 typedef int* va_list;
8 #define va_start(ap, last) ((ap) = (int*)&(last) + 1)
9 #define va_arg(ap, type) (*(type*)(ap)++)
10 #define va_end(ap)
12 #endif /* STDARG_H_ */