diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-05-26 16:17:12 -0400 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-05-26 16:17:12 -0400 |
commit | 2af19378be4e7eeec7754053070cf4bad035d7b1 (patch) | |
tree | b9a2fcd4766c69c121d187e5334495b367c4efd4 | |
parent | 41412a86f2ca0baf908fe0b2e4bcc396f66989ae (diff) | |
download | egawk-2af19378be4e7eeec7754053070cf4bad035d7b1.tar.gz egawk-2af19378be4e7eeec7754053070cf4bad035d7b1.tar.bz2 egawk-2af19378be4e7eeec7754053070cf4bad035d7b1.zip |
Improve definition of fatal macro.
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | awk.h | 2 |
2 files changed, 9 insertions, 3 deletions
@@ -1,7 +1,13 @@ +2016-05-26 Arnold D. Robbins <arnold@skeeve.com> + + * awk.h [fatal]: Make parentheses and use of indirection + consistent with warning and lintwarn. Thanks to Andrew Schorr + for pointing this out. + 2016-05-26 Andrew J. Schorr <aschorr@telemetry-investments.com> - * awk.h (get_actual_argument): Add an initial argument containing the - (NODE *) previously returned by get_argument. This allows us to + * awk.h (get_actual_argument): Add an initial argument containing + the (NODE *) previously returned by get_argument. This allows us to eliminate a call to get_argument from inside get_actual_argument. (get_scalar_argument, get_array_argument): Change macro definition to add an initial node argument to pass through to get_actual_argument. @@ -1271,7 +1271,7 @@ DEREF(NODE *r) #define efree(p) free(p) -#define fatal set_loc(__FILE__, __LINE__), r_fatal +#define fatal (*(set_loc(__FILE__, __LINE__), r_fatal)) extern jmp_buf fatal_tag; extern bool fatal_tag_valid; |