X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstdarg.h;h=5d2270535968835b6d685a56cde6011d40adce93;hb=b589d7c67f9130207ab72d8b7c687b94d5bcc352;hp=6afedec46d83f1702465a1bbb06584764f97129d;hpb=15e3f8a309359e62810df3cd1dafaf77481452a2;p=pdclib.old diff --git a/includes/stdarg.h b/includes/stdarg.h index 6afedec..5d22705 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 @@ -13,7 +13,7 @@ // ---------------------------------------------------------------------------- // TYPEDEFS -typedef do-type va_list; +typedef do-type va_list; // TODO // ---------------------------------------------------------------------------- // MACROS @@ -23,4 +23,10 @@ typedef do-type va_list; #define va_end( va_list ap ) // TODO #define va_start( va_list ap, last-par ) // TODO +/* PDPC code - unreviewed +#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