diff options
| author | 2024-04-25 21:24:10 +0100 | |
|---|---|---|
| committer | 2024-04-25 22:32:27 +0000 | |
| commit | 2d04cacc5322951f187bb17e017c12920ac8ebe2 (patch) | |
| tree | 80ee017efa878dfd5344b44249e6a241f2a7f6e2 /v4.0/src/TOOLS/BLD/INC/VARARGS.H | |
| parent | Merge pull request #430 from jpbaltazar/typoptbr (diff) | |
| download | ms-dos-main.tar.gz ms-dos-main.tar.xz ms-dos-main.zip | |
Diffstat (limited to 'v4.0/src/TOOLS/BLD/INC/VARARGS.H')
| -rw-r--r-- | v4.0/src/TOOLS/BLD/INC/VARARGS.H | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/v4.0/src/TOOLS/BLD/INC/VARARGS.H b/v4.0/src/TOOLS/BLD/INC/VARARGS.H new file mode 100644 index 0000000..e96d04e --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/VARARGS.H | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | /*** | ||
| 2 | *varargs.h - XENIX style macros for variable argument functions | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file defines XENIX style macros for accessing arguments of a | ||
| 8 | * function which takes a variable number of arguments. | ||
| 9 | * [System V] | ||
| 10 | * | ||
| 11 | *******************************************************************************/ | ||
| 12 | |||
| 13 | #ifndef _VA_LIST_DEFINED | ||
| 14 | typedef char *va_list; | ||
| 15 | #define _VA_LIST_DEFINED | ||
| 16 | #endif | ||
| 17 | |||
| 18 | #define va_dcl va_list va_alist; | ||
| 19 | #define va_start(ap) ap = (va_list)&va_alist | ||
| 20 | #define va_arg(ap,t) ((t *)(ap += sizeof(t)))[-1] | ||
| 21 | #define va_end(ap) ap = NULL | ||