diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-07-01 06:39:31 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-07-01 06:39:31 +0300 |
commit | 82024c4ac22e50de3b0ad36d8aa81c52e7b4c9ae (patch) | |
tree | 3574de3ec3e113353c77bc4ab74f63b95e9337ba | |
parent | bc1cf4039d9e52ae7b285f20e68a846d9143a210 (diff) | |
download | egawk-82024c4ac22e50de3b0ad36d8aa81c52e7b4c9ae.tar.gz egawk-82024c4ac22e50de3b0ad36d8aa81c52e7b4c9ae.tar.bz2 egawk-82024c4ac22e50de3b0ad36d8aa81c52e7b4c9ae.zip |
Minor fixes in gawkapi.c.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gawkapi.c | 5 |
2 files changed, 7 insertions, 3 deletions
@@ -6,6 +6,11 @@ * node.c (r_format_val): Ditto. Thanks to Andrew Schorr for pointing these out. + Unrelated: + + * gawkapi.c (api_warning): Fix the comment header. + (api_lintwarn): Factor out the call to va_end to after the if. + 2016-06-26 Arnold D. Robbins <arnold@skeeve.com> Repair change of 2015-08-25 to handling of MAYBE_NUM. @@ -193,7 +193,7 @@ api_fatal(awk_ext_id_t id, const char *format, ...) va_end(args); } -/* api_warning --- print a warning message and exit */ +/* api_warning --- print a warning message */ static void api_warning(awk_ext_id_t id, const char *format, ...) @@ -219,11 +219,10 @@ api_lintwarn(awk_ext_id_t id, const char *format, ...) va_start(args, format); if (lintwarn == r_fatal) { err(true, _("fatal: "), format, args); - va_end(args); } else { err(false, _("warning: "), format, args); - va_end(args); } + va_end(args); } /* api_register_input_parser --- register an input_parser; for opening files read-only */ |