aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-12-07 14:28:29 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-12-07 14:28:29 +0200
commitd20af67ae8a6a573a0db906f9c9960a092f21b41 (patch)
treeeb97d6b43b283985b3ddb7070ac8abb74f175f79 /awkgram.c
parent787d93719e61e44aa1ab66c8ecca9cd6ff4fddbf (diff)
downloadegawk-d20af67ae8a6a573a0db906f9c9960a092f21b41.tar.gz
egawk-d20af67ae8a6a573a0db906f9c9960a092f21b41.tar.bz2
egawk-d20af67ae8a6a573a0db906f9c9960a092f21b41.zip
fflush() is now POSIX. Fix code and document.
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 ba32abcf..33f0d6cd 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -4294,9 +4294,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 */
};
@@ -4351,7 +4350,7 @@ static const struct token tokentab[] = {
{"exit", Op_K_exit, LEX_EXIT, 0, 0},
{"exp", Op_builtin, LEX_BUILTIN, A(1), do_exp},
{"extension", Op_builtin, LEX_BUILTIN, GAWKX|A(2), do_ext},
-{"fflush", Op_builtin, LEX_BUILTIN, RESX|A(0)|A(1), do_fflush},
+{"fflush", Op_builtin, LEX_BUILTIN, A(0)|A(1), do_fflush},
{"for", Op_K_for, LEX_FOR, BREAK|CONTINUE, 0},
{"func", Op_func, LEX_FUNCTION, NOT_POSIX|NOT_OLD, 0},
{"function",Op_func, LEX_FUNCTION, NOT_OLD, 0},
@@ -5989,11 +5988,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);