diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-12-07 14:36:33 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-12-07 14:36:33 +0200 |
commit | a5a114bf6c6f2efdcd7889ebf0d7f9f3ec235a74 (patch) | |
tree | 5e410dc93cb44ea46476c79e672e7b8312fd1850 /awkgram.c | |
parent | 92ae037dd508bfa8ffd6322f7a3bef249877ba64 (diff) | |
parent | f634938f90ef8c85cfd9ca7421f10f4b70c0137e (diff) | |
download | egawk-a5a114bf6c6f2efdcd7889ebf0d7f9f3ec235a74.tar.gz egawk-a5a114bf6c6f2efdcd7889ebf0d7f9f3ec235a74.tar.bz2 egawk-a5a114bf6c6f2efdcd7889ebf0d7f9f3ec235a74.zip |
Merge branch 'master' into array-iface. fflush() is in POSIX.
Diffstat (limited to 'awkgram.c')
-rw-r--r-- | awkgram.c | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -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 */ @@ -4392,7 +4391,7 @@ static const struct token tokentab[] = { {"exit", Op_K_exit, LEX_EXIT, 0, 0, 0}, {"exp", Op_builtin, LEX_BUILTIN, A(1), do_exp, MPF(exp)}, {"extension", Op_builtin, LEX_BUILTIN, GAWKX|A(1)|A(2)|A(3), do_ext, 0}, -{"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}, @@ -6142,11 +6141,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); |