summaryrefslogtreecommitdiff
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-12-09 22:04:10 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-12-09 22:04:10 +0200
commitd283194601bc7cb7c071317a8d53a89a3cbac40d (patch)
treee3740277727d3430a3d5d348d0c17b331cf4d7cd /awkgram.c
parent049873587037f41580a4759a7b903719d5c85b68 (diff)
downloadgawk-d283194601bc7cb7c071317a8d53a89a3cbac40d.tar.gz
Make bitflag checking consistent everywhere.
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/awkgram.c b/awkgram.c
index 5f2c91c7..d1f18376 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -6137,28 +6137,28 @@ retry:
goto out;
if (do_lint) {
- if ((tokentab[mid].flags & GAWKX) && ! (warntab[mid] & GAWKX)) {
+ if ((tokentab[mid].flags & GAWKX) != 0 && (warntab[mid] & GAWKX) == 0) {
lintwarn(_("`%s' is a gawk extension"),
tokentab[mid].operator);
warntab[mid] |= GAWKX;
}
- if ((tokentab[mid].flags & NOT_POSIX) && ! (warntab[mid] & NOT_POSIX)) {
+ if ((tokentab[mid].flags & NOT_POSIX) != 0 && (warntab[mid] & NOT_POSIX) == 0) {
lintwarn(_("POSIX does not allow `%s'"),
tokentab[mid].operator);
warntab[mid] |= NOT_POSIX;
}
}
- if (do_lint_old && (tokentab[mid].flags & NOT_OLD)
- && ! (warntab[mid] & NOT_OLD)
+ if (do_lint_old && (tokentab[mid].flags & NOT_OLD) != 0
+ && (warntab[mid] & NOT_OLD) == 0
) {
warning(_("`%s' is not supported in old awk"),
tokentab[mid].operator);
warntab[mid] |= NOT_OLD;
}
- if (tokentab[mid].flags & BREAK)
+ if ((tokentab[mid].flags & BREAK) != 0)
break_allowed++;
- if (tokentab[mid].flags & CONTINUE)
+ if ((tokentab[mid].flags & CONTINUE) != 0)
continue_allowed++;
switch (class) {