From f4e00a39c236bf7481c72bcc6d215900040c7cdf Mon Sep 17 00:00:00 2001 From: jtc Date: Fri, 2 Jul 1993 23:56:52 +0000 Subject: Updated to mawk 1.1.4 --- gnu/usr.bin/awk/vargs.h | 59 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 gnu/usr.bin/awk/vargs.h (limited to 'gnu/usr.bin/awk/vargs.h') diff --git a/gnu/usr.bin/awk/vargs.h b/gnu/usr.bin/awk/vargs.h new file mode 100644 index 00000000000..a623b83d67a --- /dev/null +++ b/gnu/usr.bin/awk/vargs.h @@ -0,0 +1,59 @@ + +/******************************************** +vargs.h +copyright 1992 Michael D. Brennan + +This is a source file for mawk, an implementation of +the AWK programming language. + +Mawk is distributed without warranty under the terms of +the GNU General Public License, version 2, 1991. +********************************************/ + +/* +$Log: vargs.h,v $ +Revision 1.1 1993/07/02 23:58:01 jtc +Updated to mawk 1.1.4 + + * Revision 1.1 1992/10/02 23:23:41 mike + * Initial revision + * +*/ + +/* provides common interface to or + only used for error messages +*/ + + +#if HAVE_STDARG_H == 0 +#include + +#ifndef VA_ALIST + +#define VA_ALIST(type, arg) (va_alist) va_dcl { type arg ; +#define VA_ALIST2(t1,a1,t2,a2) (va_alist) va_dcl { t1 a1 ; t2 a2 ; + +#endif + +#define VA_START(p,type, last) va_start(p) ;\ + last = va_arg(p,type) + + +#define VA_START2(p,t1,a1,t2,a2) va_start(p) ;\ + a1 = va_arg(p,t1);\ + a2 = va_arg(p,t2) + +#else /* HAVE_STDARG_H */ +#include + +#ifndef VA_ALIST +#define VA_ALIST(type, arg) (type arg, ...) { +#define VA_ALIST2(t1,a1,t2,a2) (t1 a1,t2 a2,...) { +#endif + +#define VA_START(p,type,last) va_start(p,last) + +#define VA_START2(p,t1,a1,t2,a2) va_start(p,a2) + +#endif + -- cgit