diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-07-08 14:16:36 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-07-08 14:16:36 +0300 |
commit | 55858266e4b310f34c6812e6ecb8f08fe3e5c582 (patch) | |
tree | 5b8001871e4d633d7e67cf2fa2ac2d3c6bc7d542 | |
parent | 7b8e8b3a25420f6d79f0d24831063eccae9291ea (diff) | |
download | egawk-55858266e4b310f34c6812e6ecb8f08fe3e5c582.tar.gz egawk-55858266e4b310f34c6812e6ecb8f08fe3e5c582.tar.bz2 egawk-55858266e4b310f34c6812e6ecb8f08fe3e5c582.zip |
Minor coding style fix in builtin.c.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | builtin.c | 7 |
2 files changed, 8 insertions, 3 deletions
@@ -2,6 +2,10 @@ * dfa.c: Sync with GNU grep. + Unrelated: + + * builtin.c (do_print): Coding style change. + 2016-07-03 Andrew J. Schorr <aschorr@telemetry-investments.com> * field.c (rebuild_record): Revert warning message regarding flags, @@ -2203,9 +2203,10 @@ do_print(int nargs, int redirtype) if (tmp->type == Node_typedregex) args_array[i] = force_string(tmp); - else if (!((tmp->flags & STRCUR) != 0 - && (tmp->stfmt == STFMT_UNUSED || tmp->stfmt == OFMTidx))) - args_array[i] = format_val(OFMT, OFMTidx, tmp); + else if ( (tmp->flags & STRCUR) == 0 + || ( tmp->stfmt != STFMT_UNUSED + && tmp->stfmt != OFMTidx)) + args_array[i] = format_val(OFMT, OFMTidx, tmp); } if (redir_exp != NULL) { |