X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=includes%2Fstdarg.h;h=e0943329010533346d95ddca7865444bf57ac07b;hp=6afedec46d83f1702465a1bbb06584764f97129d;hb=ac3f809c3c10347c110fac3db93af0954eda98bb;hpb=8b8277d2940a8745f85d86a9af3ad6970b5fa52c diff --git a/includes/stdarg.h b/includes/stdarg.h index 6afedec..e094332 100644 --- a/includes/stdarg.h +++ b/includes/stdarg.h @@ -4,7 +4,7 @@ // 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 @@ -23,4 +23,12 @@ typedef do-type va_list; #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