From f421a5fbef014040712a7c89e8863c7196f6ab93 Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Tue, 5 Jul 2016 16:49:05 -0400 Subject: Remove FIELD flag, since it is the inverse of the MALLOC flag. --- awk.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'awk.h') diff --git a/awk.h b/awk.h index b99dec70..a80ced65 100644 --- a/awk.h +++ b/awk.h @@ -387,9 +387,6 @@ typedef struct exp_node { NODETYPE type; unsigned int flags; -/* any type */ -# define MALLOC 0x0001 /* can be free'd */ - /* type = Node_val */ /* * STRING and NUMBER are mutually exclusive, except for the special @@ -426,13 +423,13 @@ typedef struct exp_node { * * We hope that the rest of the flags are self-explanatory. :-) */ +# define MALLOC 0x0001 /* stptr can be free'd, i.e. not a field node pointing into a shared buffer */ # define STRING 0x0002 /* assigned as string */ # define STRCUR 0x0004 /* string value is current */ # define NUMCUR 0x0008 /* numeric value is current */ # define NUMBER 0x0010 /* assigned as number */ # define MAYBE_NUM 0x0020 /* user input: if NUMERIC then * a NUMBER */ -# define FIELD 0x0040 /* this is a field */ # define INTLSTR 0x0080 /* use localized version */ # define NUMINT 0x0100 /* numeric value is an integer */ # define INTIND 0x0200 /* integral value is array index; -- cgit v1.2.3