X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstdarg.h;h=e0943329010533346d95ddca7865444bf57ac07b;hb=c6c6780c8ee488461ffd0adbfdda60d1adce8c4e;hp=ab5529aa2b3527d108f8caebf90cc2b86fca93f5;hpb=1e221deb9ee725a14b3656f94e2763f8faeb18dc;p=pdclib diff --git a/includes/stdarg.h b/includes/stdarg.h index ab5529a..e094332 100644 --- a/includes/stdarg.h +++ b/includes/stdarg.h @@ -4,12 +4,31 @@ // Public Domain C Library - http://pdclib.sourceforge.net // This code is Public Domain. Use, modify, and redistribute at will. // ---------------------------------------------------------------------------- -// TODO +// Variable arguments // ---------------------------------------------------------------------------- #ifndef __STDARG_H #define __STDARG_H __STDARG_H -// TODO +// ---------------------------------------------------------------------------- +// TYPEDEFS + +typedef do-type va_list; + +// ---------------------------------------------------------------------------- +// MACROS + +#define va_arg( va_list ap, Ty ) // TODO +#define va_copy( va_list dest, va_list src ) // TODO +#define va_end( va_list ap ) // TODO +#define va_start( va_list ap, last-par ) // TODO + +/* +From PDPClib: + +#define va_start(ap, parmN) ap = (char *)&parmN + 4 +#define va_arg(ap, type) *(type *)(ap += sizeof(type), ap - sizeof(type)) +#define va_end(ap) ap = 0 +*/ #endif // __STDARG_H