X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstdarg.h;h=e0943329010533346d95ddca7865444bf57ac07b;hb=e794d9887cd8f94befd7861e39eccf46666c89fe;hp=6afedec46d83f1702465a1bbb06584764f97129d;hpb=15e3f8a309359e62810df3cd1dafaf77481452a2;p=pdclib.old 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