diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-06-26 18:26:39 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-06-26 18:26:39 +0300 |
commit | e18ebe10166e2c63f3385666978b678fe6ce67a2 (patch) | |
tree | 7f6a2249dfda678c8651f0e24a273bb8b54bb886 /eval.c | |
parent | 278767f062a9c6f8ae9ff777b1a41e094813fa09 (diff) | |
download | egawk-e18ebe10166e2c63f3385666978b678fe6ce67a2.tar.gz egawk-e18ebe10166e2c63f3385666978b678fe6ce67a2.tar.bz2 egawk-e18ebe10166e2c63f3385666978b678fe6ce67a2.zip |
Minor improvements after Andy's reworking of stuff.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -942,18 +942,16 @@ set_LINT() if (lintlen == 5 && strncmp(lintval, "fatal", 5) == 0) lintfunc = r_fatal; else if (lintlen == 7 && strncmp(lintval, "invalid", 7) == 0) { - do_flags &= ~ DO_LINT_ALL; + do_flags &= ~DO_LINT_ALL; do_flags |= DO_LINT_INVALID; } } else { do_flags &= ~(DO_LINT_ALL|DO_LINT_INVALID); } - } else { - if (! iszero(n)) - do_flags |= DO_LINT_ALL; - else - do_flags &= ~(DO_LINT_ALL|DO_LINT_INVALID); - } + } else if (! iszero(n)) + do_flags |= DO_LINT_ALL; + else + do_flags &= ~(DO_LINT_ALL|DO_LINT_INVALID); /* explicitly use warning() here, in case lintfunc == r_fatal */ if (old_lint != do_lint && old_lint && ! do_lint) |