2 /********************************************
4 copyright 1992 Michael D. Brennan
6 This is a source file for mawk, an implementation of
7 the AWK programming language.
9 Mawk is distributed without warranty under the terms of
10 the GNU General Public License, version 2, 1991.
11 ********************************************/
15 * Revision 1.4 1994/12/14 14:36:54 mike
16 * sometimes stdarg.h exists, but depending on compiler flags it is
17 * unusable -- assume NO_PROTOS => NO_STDARG_H
19 * Revision 1.3 1994/10/08 19:18:38 mike
22 * Revision 1.2 1993/07/04 12:52:19 mike
23 * start on autoconfig changes
25 * Revision 1.1.1.1 1993/07/03 18:58:22 mike
28 * Revision 1.1 1992/10/02 23:23:41 mike
33 /* provides common interface to <stdarg.h> or <varargs.h>
34 only used for error messages
48 #define VA_ALIST(type, arg) (va_alist) va_dcl { type arg ;
49 #define VA_ALIST2(t1,a1,t2,a2) (va_alist) va_dcl { t1 a1 ; t2 a2 ;
53 #define VA_START(p,type, last) va_start(p) ;\
57 #define VA_START2(p,t1,a1,t2,a2) va_start(p) ;\
61 #else /* have stdarg.h */
65 #define VA_ALIST(type, arg) (type arg, ...) {
66 #define VA_ALIST2(t1,a1,t2,a2) (t1 a1,t2 a2,...) {
69 #define VA_START(p,type,last) va_start(p,last)
71 #define VA_START2(p,t1,a1,t2,a2) va_start(p,a2)