diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-04-05 10:51:51 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-04-05 10:51:51 +0300 |
commit | dbf9d5a4fc4b6d6340912395f020019576ed37f6 (patch) | |
tree | 4b3540a5be9ec18187647cbdef462558a9cdfef2 /awkgram.c | |
parent | f82aa0619d803ebe0dc1710edf1a3e108a4210c8 (diff) | |
parent | e7ee504434e315852ebd449e20d72929de63cfe6 (diff) | |
download | egawk-dbf9d5a4fc4b6d6340912395f020019576ed37f6.tar.gz egawk-dbf9d5a4fc4b6d6340912395f020019576ed37f6.tar.bz2 egawk-dbf9d5a4fc4b6d6340912395f020019576ed37f6.zip |
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'awkgram.c')
-rw-r--r-- | awkgram.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -8234,12 +8234,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); } } |