home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1994 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1994.iso
/
win3
/
patches
/
symantec
/
rtlinc.exe
/
STDARG.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-05-18
|
689b
|
29 lines
/*_ stdarg.h 1993 Modified by: Walter Bright */
/* ANSI C style variable arguments */
#ifndef __STDARG_H
#define __STDARG_H 1
#if __INTSIZE == 4
#define __VA_ALIGN 3
#else
#define __VA_ALIGN 1
#endif
/* Aligned size on stack */
#define __va_size(type) ((sizeof(type) + __VA_ALIGN) & ~__VA_ALIGN)
#if 1
#define __SS
#else
#define __SS __ss
#endif
typedef char __SS *va_list;
#define va_start(ap,parmn) ((void)((ap) = (va_list)&(parmn)+__va_size(parmn)))
/* #define va_arg(ap,type) (*((type __SS *)(ap))++) */
#define va_arg(ap,type) (*(type __SS *)(((ap)+=__va_size(type))-(__va_size(type))))
#define va_end(ap) ((void)0)
#endif /* __STDARG_H */