2 * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
5 #pragma ident "%Z%%M% %I% %E% SMI"
9 * What follows is an attempt to unify varargs.h and stdarg.h. I'd rather
10 * have this than #ifdefs all over the code.
15 #define VARARGS(func,type,arg) func(type arg, ...)
16 #define VASTART(ap,type,name) va_start(ap,name)
17 #define VAEND(ap) va_end(ap)
20 #define VARARGS(func,type,arg) func(va_alist) va_dcl
21 #define VASTART(ap,type,name) {type name; va_start(ap); name = va_arg(ap, type)
22 #define VAEND(ap) va_end(ap);}
25 extern char *percent_m();