diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-11-26 20:25:38 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-11-26 20:25:38 +0200 |
commit | d3699b66e430f40943242dcc2b2687e871207471 (patch) | |
tree | e411b52a84864873b548e2a87514662fde75aa9d /awk.h | |
parent | 9a9ff61bbd952c1263b55f82a269da5b09289a6b (diff) | |
download | egawk-d3699b66e430f40943242dcc2b2687e871207471.tar.gz egawk-d3699b66e430f40943242dcc2b2687e871207471.tar.bz2 egawk-d3699b66e430f40943242dcc2b2687e871207471.zip |
Finish porting to current code base.
Diffstat (limited to 'awk.h')
-rw-r--r-- | awk.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -294,6 +294,7 @@ typedef enum nodevals { Node_param_list, /* lnode is a variable, rnode is more list */ Node_func, /* lnode is param. list, rnode is body */ Node_ext_func, /* extension function, code_ptr is builtin code */ + Node_old_ext_func, /* extension function, code_ptr is builtin code */ Node_array_ref, /* array passed by ref as parameter */ Node_array_tree, /* Hashed array tree (HAT) */ @@ -628,6 +629,7 @@ typedef enum opcodeval { Op_builtin, Op_sub_builtin, /* sub, gsub and gensub */ Op_ext_builtin, + Op_old_ext_builtin, /* temporary */ Op_in_array, /* boolean test of membership in array */ /* function call instruction */ @@ -1284,7 +1286,7 @@ if (val++) \ if (--val) \ memcpy((char *) tag, (const char *) (stack), sizeof(jmp_buf)) -#define assoc_length(a) (*((a)->alength(a, NULL)))->table_size +#define assoc_length(a) ((*((a)->alength(a, NULL)))->table_size) #define assoc_empty(a) (assoc_length(a) == 0) #define assoc_lookup(a, s) ((a)->alookup(a, s)) |