summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-06-11 08:38:52 +0300
committerArnold D. Robbins <arnold@skeeve.com>2020-06-11 08:38:52 +0300
commit901a6bf25b693537c59c4d1990c700e5c68db5e7 (patch)
treec7fc79d52b7efc545ce4d6044e86cfc2987892d5
parent9cfec0497fb83a69bd77b0d2c940fe70b76c23da (diff)
downloadgawk-901a6bf25b693537c59c4d1990c700e5c68db5e7.tar.gz
Finish up patches from Michael Builov.
-rw-r--r--ChangeLog17
-rw-r--r--msg.c9
2 files changed, 18 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 322c7aec..48f08cf5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
2020-06-10 Arnold D. Robbins <arnold@skeeve.com>
+ More miscellaneous fixes from Michael Builov <mbuilov@gmail.com>.
+
+ * node.c (r_unref): Handle GAWKDEBUG same as in awk.h:unref.
+ (parse_escape): isxdigit/isdigit/isupper called with possible negative
+ int: fixed. Dead code under "if (do_lint && j > 2)" eliminated,
+ j cannot be > 2.
+ (init_btowc_cache): Also initialize wide-char at index 255.
+
+ And so that `make check' passes with GAWKDEBUG defined:
+
+ * msg.c (err): Remvoe abort() call if fatal. Didn't really do
+ anything special for us.
+
+2020-06-10 Arnold D. Robbins <arnold@skeeve.com>
+
* awkgram.c, command.c: Regenerated with bison 3.6.3.
* NEWS: Updated.
@@ -14,7 +29,7 @@
2020-06-10 Arnold D. Robbins <arnold@skeeve.com>
- Miscellanious fixes from Michael Builov <mbuilov@gmail.com>.
+ Miscellaneous fixes from Michael Builov <mbuilov@gmail.com>.
* awkgram.y (rule_block): Fix size declaration
(parse_program): Adjust memset call.
diff --git a/msg.c b/msg.c
index 53df2c0a..0dc3f718 100644
--- a/msg.c
+++ b/msg.c
@@ -106,14 +106,9 @@ err(bool isfatal, const char *s, const char *emsg, va_list argp)
(void) fprintf(stderr, "\n");
(void) fflush(stderr);
- if (isfatal) {
-#ifdef GAWKDEBUG
- // GLIBC 2.27 doesn't necessarily flush on abort. Sigh.
- fflush(NULL);
- abort();
-#endif
+ if (isfatal)
gawk_exit(EXIT_FATAL);
- }
+
}
/* msg --- take a varargs error message and print it */