main
test-branch
| Line | |
|---|
| 1 | /* The header stdarg.h declares a type and defines four macros, for advancing
|
|---|
| 2 | * through a list of arguments whose number and types are not known to the
|
|---|
| 3 | * called function when it is translated.
|
|---|
| 4 | */
|
|---|
| 5 | #ifndef _STDARG_
|
|---|
| 6 | #define _STDARG_
|
|---|
| 7 |
|
|---|
| 8 | /* Types */
|
|---|
| 9 | typedef struct {int id;} va_list;
|
|---|
| 10 |
|
|---|
| 11 | typedef struct {int id;} _va_arg_return_t;
|
|---|
| 12 |
|
|---|
| 13 | typedef struct {int id;} _va_param;
|
|---|
| 14 |
|
|---|
| 15 | _va_arg_return_t _va_arg(va_list val);
|
|---|
| 16 |
|
|---|
| 17 | void _va_start(va_list ap, _va_param ident);
|
|---|
| 18 |
|
|---|
| 19 | /* Macros */
|
|---|
| 20 | #define va_arg(ap, type) ((type)_va_arg(ap))
|
|---|
| 21 |
|
|---|
| 22 | #define va_start(ap, parmN) _va_start(ap, (_va_param)(parmN))
|
|---|
| 23 |
|
|---|
| 24 | void va_copy(va_list dest, va_list src);
|
|---|
| 25 |
|
|---|
| 26 | void va_end(va_list ap);
|
|---|
| 27 |
|
|---|
| 28 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.