summaryrefslogtreecommitdiff
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-12-07 14:33:48 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-12-07 14:33:48 +0200
commitf634938f90ef8c85cfd9ca7421f10f4b70c0137e (patch)
treebaaf1167db893a04b774c5ba71a2b51ecd9686c9 /awkgram.c
parent32323fa42c2c9079abf9a5fe92b2af8c523fd84b (diff)
parentd20af67ae8a6a573a0db906f9c9960a092f21b41 (diff)
downloadgawk-f634938f90ef8c85cfd9ca7421f10f4b70c0137e.tar.gz
Merge branch 'gawk-4.0-stable'. fflush is now POSIX.
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/awkgram.c b/awkgram.c
index 324ba1e3..54680e75 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -4328,9 +4328,8 @@ struct token {
# define NOT_OLD 0x0100 /* feature not in old awk */
# define NOT_POSIX 0x0200 /* feature not in POSIX */
# define GAWKX 0x0400 /* gawk extension */
-# define RESX 0x0800 /* Bell Labs Research extension */
-# define BREAK 0x1000 /* break allowed inside */
-# define CONTINUE 0x2000 /* continue allowed inside */
+# define BREAK 0x0800 /* break allowed inside */
+# define CONTINUE 0x1000 /* continue allowed inside */
NODE *(*ptr)(int); /* function that implements this keyword */
NODE *(*ptr2)(int); /* alternate arbitrary-precision function */
@@ -4391,7 +4390,7 @@ static const struct token tokentab[] = {
{"eval", Op_symbol, LEX_EVAL, 0, 0, 0},
{"exit", Op_K_exit, LEX_EXIT, 0, 0, 0},
{"exp", Op_builtin, LEX_BUILTIN, A(1), do_exp, MPF(exp)},
-{"fflush", Op_builtin, LEX_BUILTIN, RESX|A(0)|A(1), do_fflush, 0},
+{"fflush", Op_builtin, LEX_BUILTIN, A(0)|A(1), do_fflush, 0},
{"for", Op_K_for, LEX_FOR, BREAK|CONTINUE, 0, 0},
{"func", Op_func, LEX_FUNCTION, NOT_POSIX|NOT_OLD, 0, 0},
{"function",Op_func, LEX_FUNCTION, NOT_OLD, 0, 0},
@@ -6141,11 +6140,6 @@ retry:
tokentab[mid].operator);
warntab[mid] |= GAWKX;
}
- if ((tokentab[mid].flags & RESX) && ! (warntab[mid] & RESX)) {
- lintwarn(_("`%s' is a Bell Labs extension"),
- tokentab[mid].operator);
- warntab[mid] |= RESX;
- }
if ((tokentab[mid].flags & NOT_POSIX) && ! (warntab[mid] & NOT_POSIX)) {
lintwarn(_("POSIX does not allow `%s'"),
tokentab[mid].operator);