aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.y
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-04-05 10:53:40 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-04-05 10:53:40 +0300
commit7f26aba2472025b18af917705d9c923bfc76d337 (patch)
treebaf891c4c4dba04c94be0d30e67f072b896c11f8 /awkgram.y
parent91ac42ccd9bbeee4f17181cd896cc9b7de13b6f7 (diff)
parentdbf9d5a4fc4b6d6340912395f020019576ed37f6 (diff)
downloadegawk-7f26aba2472025b18af917705d9c923bfc76d337.tar.gz
egawk-7f26aba2472025b18af917705d9c923bfc76d337.tar.bz2
egawk-7f26aba2472025b18af917705d9c923bfc76d337.zip
Merge branch 'master' into wasted-byte
Diffstat (limited to 'awkgram.y')
-rw-r--r--awkgram.y14
1 files changed, 11 insertions, 3 deletions
diff --git a/awkgram.y b/awkgram.y
index d723f510..077ff793 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -5896,12 +5896,20 @@ void
install_builtins(void)
{
int i, j;
+ int flags_that_must_be_clear = DEBUG_USE;
+
+ if (do_traditional)
+ flags_that_must_be_clear |= GAWKX;
+
+ if (do_posix)
+ flags_that_must_be_clear |= NOT_POSIX;
+
j = sizeof(tokentab) / sizeof(tokentab[0]);
for (i = 0; i < j; i++) {
- if ( (tokentab[i].class == LEX_BUILTIN
- || tokentab[i].class == LEX_LENGTH)
- && (tokentab[i].flags & DEBUG_USE) == 0) {
+ if ( (tokentab[i].class == LEX_BUILTIN
+ || tokentab[i].class == LEX_LENGTH)
+ && (tokentab[i].flags & flags_that_must_be_clear) == 0) {
(void) install_symbol(tokentab[i].operator, Node_builtin_func);
}
}