kern
annotate src/klibc/stdarg.h @ 80:4db99a52863e
fixed the "endianess" of the text messages in the ATA identify info block. this
is the first time I've seen wrong byteorder in ascii text, the ATA committee
should be commended.
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 06 Dec 2011 13:35:39 +0200 |
parents | |
children |
rev | line source |
---|---|
nuclear@6 | 1 #ifndef STDARG_H_ |
nuclear@6 | 2 #define STDARG_H_ |
nuclear@6 | 3 |
nuclear@6 | 4 /* Assumes that arguments are passed on the stack 4-byte aligned */ |
nuclear@6 | 5 |
nuclear@6 | 6 typedef int* va_list; |
nuclear@6 | 7 |
nuclear@6 | 8 #define va_start(ap, last) ((ap) = (int*)&(last) + 1) |
nuclear@6 | 9 #define va_arg(ap, type) (*(type*)(ap)++) |
nuclear@6 | 10 #define va_end(ap) |
nuclear@6 | 11 |
nuclear@6 | 12 #endif /* STDARG_H_ */ |