diff options
| author | manuel <manuel@mausz.at> | 2012-03-26 12:54:45 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2012-03-26 12:54:45 +0200 |
| commit | b5f0874cd96ee2a62aabc645b9626c2749cb6a01 (patch) | |
| tree | 1262e4bbe0634de6650be130c36e0538240f4cbf /pintos-progos/lib/stdarg.h | |
| download | progos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.tar.gz progos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.tar.bz2 progos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.zip | |
initial pintos checkin
Diffstat (limited to 'pintos-progos/lib/stdarg.h')
| -rw-r--r-- | pintos-progos/lib/stdarg.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pintos-progos/lib/stdarg.h b/pintos-progos/lib/stdarg.h new file mode 100644 index 0000000..32622b5 --- /dev/null +++ b/pintos-progos/lib/stdarg.h | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | #ifndef __LIB_STDARG_H | ||
| 2 | #define __LIB_STDARG_H | ||
| 3 | |||
| 4 | /* GCC has <stdarg.h> functionality as built-ins, | ||
| 5 | so all we need is to use it. */ | ||
| 6 | |||
| 7 | typedef __builtin_va_list va_list; | ||
| 8 | |||
| 9 | #define va_start(LIST, ARG) __builtin_va_start (LIST, ARG) | ||
| 10 | #define va_end(LIST) __builtin_va_end (LIST) | ||
| 11 | #define va_arg(LIST, TYPE) __builtin_va_arg (LIST, TYPE) | ||
| 12 | #define va_copy(DST, SRC) __builtin_va_copy (DST, SRC) | ||
| 13 | |||
| 14 | #endif /* lib/stdarg.h */ | ||
