aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-05-04 23:05:28 +0300
committerArnold D. Robbins <arnold@skeeve.com>2011-05-04 23:05:28 +0300
commite7dced088c226280bcb1edb252011d6c186504e4 (patch)
tree868eabc52db1e4a08e1385868e1a56062e74ea40 /awk.h
parent19093d5a231421594788d633e811859276d8f92f (diff)
downloadegawk-e7dced088c226280bcb1edb252011d6c186504e4.tar.gz
egawk-e7dced088c226280bcb1edb252011d6c186504e4.tar.bz2
egawk-e7dced088c226280bcb1edb252011d6c186504e4.zip
Fix problem with subarray of deleted array.
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/awk.h b/awk.h
index add30f9d..fb567487 100644
--- a/awk.h
+++ b/awk.h
@@ -319,7 +319,7 @@ typedef struct exp_node {
char **param_list;
} x;
char *name;
- short number;
+ struct exp_node *rn;
unsigned long reflags;
# define CASE 1
# define CONSTANT 2
@@ -375,8 +375,8 @@ typedef struct exp_node {
* function name; see awkgram.y */
# define FIELD 512 /* this is a field */
# define INTLSTR 1024 /* use localized version */
-# define WSTRCUR 2048 /* wide str value is current */
-# define NUMIND 4096 /* numeric val of index is current */
+# define NUMIND 2048 /* numeric val of index is current */
+# define WSTRCUR 4096 /* wide str value is current */
} NODE;
@@ -419,9 +419,10 @@ typedef struct exp_node {
#define var_assign sub.nodep.x.aptr
/* Node_var_array: */
-#define var_array sub.nodep.r.av
-#define array_size sub.nodep.l.ll
-#define table_size sub.nodep.x.xl
+#define var_array sub.nodep.r.av
+#define array_size sub.nodep.l.ll
+#define table_size sub.nodep.x.xl
+#define parent_array sub.nodep.rn
/* Node_array_ref: */
#define orig_array lnode