diff options
Diffstat (limited to 'v4.0/src/TOOLS/BLD/INC/STDARG.H')
| -rw-r--r-- | v4.0/src/TOOLS/BLD/INC/STDARG.H | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/v4.0/src/TOOLS/BLD/INC/STDARG.H b/v4.0/src/TOOLS/BLD/INC/STDARG.H new file mode 100644 index 0000000..d261cfa --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/STDARG.H | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | /*** | ||
| 2 | *stdarg.h - defines ANSI-style macros for variable argument functions | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file defines ANSI-style macros for accessing arguments | ||
| 8 | * of functions which take a variable number of arguments. | ||
| 9 | * [ANSI] | ||
| 10 | * | ||
| 11 | *******************************************************************************/ | ||
| 12 | |||
| 13 | #ifndef _VA_LIST_DEFINED | ||
| 14 | typedef char *va_list; | ||
| 15 | #define _VA_LIST_DEFINED | ||
| 16 | #endif | ||
| 17 | |||
| 18 | #define va_start(ap,v) ap = (va_list)&v + sizeof(v) | ||
| 19 | #define va_arg(ap,t) ((t *)(ap += sizeof(t)))[-1] | ||
| 20 | #define va_end(ap) ap = NULL | ||