diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-06-19 20:42:51 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-06-19 20:42:51 +0300 |
commit | 3a40be8a79f9d4e4bb205cca4eb15b1ee811f60c (patch) | |
tree | 2b2321da7274d07a4762ecbde31ffda07a69e91a /awkgram.c | |
parent | 1e3ac8a49caeeb991d8163042a576a66db51c74b (diff) | |
download | egawk-3a40be8a79f9d4e4bb205cca4eb15b1ee811f60c.tar.gz egawk-3a40be8a79f9d4e4bb205cca4eb15b1ee811f60c.tar.bz2 egawk-3a40be8a79f9d4e4bb205cca4eb15b1ee811f60c.zip |
Fix code duplication in gawkapi.c from msg.c.
Diffstat (limited to 'awkgram.c')
-rw-r--r-- | awkgram.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -4704,7 +4704,7 @@ warning_ln(int line, const char *mesg, ...) sourceline = line; print_included_from(); va_start(args, mesg); - err(_("warning: "), mesg, args); + err(false, _("warning: "), mesg, args); va_end(args); sourceline = saveline; } @@ -4722,9 +4722,9 @@ lintwarn_ln(int line, const char *mesg, ...) print_included_from(); va_start(args, mesg); if (lintfunc == r_fatal) - err(_("fatal: "), mesg, args); + err(true, _("fatal: "), mesg, args); else - err(_("warning: "), mesg, args); + err(false, _("warning: "), mesg, args); va_end(args); sourceline = saveline; if (lintfunc == r_fatal) @@ -4744,7 +4744,7 @@ error_ln(int line, const char *m, ...) print_included_from(); errcount++; va_start(args, m); - err("error: ", m, args); + err(false, "error: ", m, args); va_end(args); sourceline = saveline; } @@ -4822,7 +4822,7 @@ yyerror(const char *m, ...) *bp++ = ' '; } strcpy(bp, mesg); - err("", buf, args); + err(false, "", buf, args); va_end(args); efree(buf); } |