diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2013-10-10 09:18:50 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2013-10-10 09:18:50 +0300 |
commit | 426afac5ee1c835f53eb78fa98df52ce52959c22 (patch) | |
tree | 0dc441a3f4b09baffe8937fe739b3bbe0fcdf3e4 | |
parent | 9bac49a90fec1886de5ae898d84a0022a2a4f2f6 (diff) | |
download | egawk-426afac5ee1c835f53eb78fa98df52ce52959c22.tar.gz egawk-426afac5ee1c835f53eb78fa98df52ce52959c22.tar.bz2 egawk-426afac5ee1c835f53eb78fa98df52ce52959c22.zip |
Bug fix to flag values.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | awk.h | 6 | ||||
-rw-r--r-- | eval.c | 1 |
3 files changed, 10 insertions, 3 deletions
@@ -2,6 +2,12 @@ * dfa.c (lex): Sync with GNU grep. Handle multibyte \s and \S. + Unrelated: + + * awk.h [ARRAY_MAXED]: Fix value of this and subsequent flags + after addition of NULL_FIELD. + * eval.c (flags2str): Add NULL_FIELD. Duh. + 2013-10-09 Arnold D. Robbins <arnold@skeeve.com> * awkgram.y (mk_assignment): Rework switch to handle Op_assign, @@ -437,10 +437,10 @@ typedef struct exp_node { # define NULL_FIELD 0x4000 /* this is the null field */ /* type = Node_var_array */ -# define ARRAYMAXED 0x4000 /* array is at max size */ -# define HALFHAT 0x8000 /* half-capacity Hashed Array Tree; +# define ARRAYMAXED 0x8000 /* array is at max size */ +# define HALFHAT 0x10000 /* half-capacity Hashed Array Tree; * See cint_array.c */ -# define XARRAY 0x10000 +# define XARRAY 0x20000 } NODE; #define vname sub.nodep.name @@ -440,6 +440,7 @@ flags2str(int flagval) { WSTRCUR, "WSTRCUR" }, { MPFN, "MPFN" }, { MPZN, "MPZN" }, + { NULL_FIELD, "NULL_FIELD" }, { ARRAYMAXED, "ARRAYMAXED" }, { HALFHAT, "HALFHAT" }, { XARRAY, "XARRAY" }, |