aboutsummaryrefslogtreecommitdiffstats
path: root/awk5.c
diff options
context:
space:
mode:
Diffstat (limited to 'awk5.c')
-rw-r--r--awk5.c74
1 files changed, 49 insertions, 25 deletions
diff --git a/awk5.c b/awk5.c
index bfeec453..0fc3ebf4 100644
--- a/awk5.c
+++ b/awk5.c
@@ -2,6 +2,15 @@
* routines for error messages
*
* $Log: awk5.c,v $
+ * Revision 1.15 89/03/31 13:26:11 david
+ * GNU license
+ *
+ * Revision 1.14 89/03/30 10:22:23 david
+ * fixed up varargs usage
+ *
+ * Revision 1.13 89/03/29 14:14:37 david
+ * delinting
+ *
* Revision 1.12 89/03/21 18:31:46 david
* changed defines for system without vprintf()
*
@@ -10,6 +19,15 @@
*
* Revision 1.10 88/12/08 11:00:07 david
* add $Log: awk5.c,v $
+ * Revision 1.15 89/03/31 13:26:11 david
+ * GNU license
+ *
+ * Revision 1.14 89/03/30 10:22:23 david
+ * fixed up varargs usage
+ *
+ * Revision 1.13 89/03/29 14:14:37 david
+ * delinting
+ *
* Revision 1.12 89/03/21 18:31:46 david
* changed defines for system without vprintf()
*
@@ -19,22 +37,25 @@
*
*/
-/*
- * GAWK is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY. No author or distributor accepts responsibility to anyone for
- * the consequences of using it or for whether it serves any particular
- * purpose or works at all, unless he says so in writing. Refer to the GAWK
- * General Public License for full details.
- *
- * Everyone is granted permission to copy, modify and redistribute GAWK, but
- * only under the conditions described in the GAWK General Public License. A
- * copy of this license is supposed to have been given to you along with GAWK
- * so you can know your rights and responsibilities. It should be in a file
- * named COPYING. Among other things, the copyright notice and this notice
- * must be preserved on all copies.
- *
- * In other words, go ahead and share GAWK, but don't try to stop anyone else
- * from sharing it farther. Help stamp out software hoarding!
+/*
+ * Copyright (C) 1986, 1988, 1989 the Free Software Foundation, Inc.
+ *
+ * This file is part of GAWK, the GNU implementation of the
+ * AWK Progamming Language.
+ *
+ * GAWK is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 1, or (at your option)
+ * any later version.
+ *
+ * GAWK is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with GAWK; see the file COPYING. If not, write to
+ * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include "awk.h"
@@ -71,40 +92,43 @@ va_list *argp;
/*VARARGS0*/
void
-msg(msg, va_alist)
-char *msg;
+msg(va_alist)
va_dcl
{
va_list args;
+ char *mesg;
va_start(args);
- err("", msg, &args);
+ mesg = va_arg(args, char *);
+ err("", mesg, &args);
va_end(args);
}
/*VARARGS0*/
void
-warning(msg, va_alist)
-char *msg;
+warning(va_alist)
va_dcl
{
va_list args;
+ char *mesg;
va_start(args);
- err("warning:", msg, &args);
+ mesg = va_arg(args, char *);
+ err("warning:", mesg, &args);
va_end(args);
}
/*VARARGS0*/
void
-fatal(msg, va_alist)
-char *msg;
+fatal(va_alist)
va_dcl
{
va_list args;
+ char *mesg;
va_start(args);
- err("fatal error:", msg, &args);
+ mesg = va_arg(args, char *);
+ err("fatal error:", mesg, &args);
va_end(args);
#ifdef DEBUG
abort();