1999-03-14 17:13:19 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* What follows is an attempt to unify varargs.h and stdarg.h. I'd rather
|
|
|
|
* have this than #ifdefs all over the code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __STDC__
|
|
|
|
#include <stdarg.h>
|
2014-10-11 18:34:10 +00:00
|
|
|
#define VARARGS(func,type,arg) func(type arg, ...)
|
|
|
|
#define VASTART(ap,type,name) va_start(ap,name)
|
|
|
|
#define VAEND(ap) va_end(ap)
|
1999-03-14 17:13:19 +00:00
|
|
|
#else
|
|
|
|
#include <varargs.h>
|
2014-10-11 18:34:10 +00:00
|
|
|
#define VARARGS(func,type,arg) func(va_alist) va_dcl
|
|
|
|
#define VASTART(ap,type,name) {type name; va_start(ap); name = va_arg(ap, type)
|
|
|
|
#define VAEND(ap) va_end(ap);}
|
1999-03-14 17:13:19 +00:00
|
|
|
#endif
|
|
|
|
|
2019-07-17 23:09:40 +00:00
|
|
|
extern char *percent_m(char *obuf, char *ibuf);
|