summaryrefslogtreecommitdiff
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-10-24 22:03:09 +0300
committerArnold D. Robbins <arnold@skeeve.com>2013-10-24 22:03:09 +0300
commit25520aab6144927a20d501c0396e9597f36fc871 (patch)
tree1a8b237e152873b5a789f10865c11a5ed1e0c3cc /awk.h
parenteb152bbe507aef92ece4a301863263818fb50a04 (diff)
downloadgawk-25520aab6144927a20d501c0396e9597f36fc871.tar.gz
Improve handling of writes to dead pipes.
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/awk.h b/awk.h
index e2744e53..6c6e8405 100644
--- a/awk.h
+++ b/awk.h
@@ -213,6 +213,8 @@ typedef void *stackoverflow_context_t;
/* use this as lintwarn("...")
this is a hack but it gives us the right semantics */
#define lintwarn (*(set_loc(__FILE__, __LINE__),lintfunc))
+/* same thing for warning */
+#define warning (*(set_loc(__FILE__, __LINE__),r_warning))
#ifdef HAVE_MPFR
#include <gmp.h>
@@ -1577,7 +1579,7 @@ extern void final_exit(int status) ATTRIBUTE_NORETURN;
extern void err(bool isfatal, const char *s, const char *emsg, va_list argp) ATTRIBUTE_PRINTF(3, 0);
extern void msg (const char *mesg, ...) ATTRIBUTE_PRINTF_1;
extern void error (const char *mesg, ...) ATTRIBUTE_PRINTF_1;
-extern void warning (const char *mesg, ...) ATTRIBUTE_PRINTF_1;
+extern void r_warning (const char *mesg, ...) ATTRIBUTE_PRINTF_1;
extern void set_loc (const char *file, int line);
extern void r_fatal (const char *mesg, ...) ATTRIBUTE_PRINTF_1;
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)