aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorjohn haque <j.eh@mchsi.com>2011-10-07 05:13:25 -0500
committerjohn haque <j.eh@mchsi.com>2011-10-12 07:55:03 -0500
commit9d8d0cf6e83832f2d9902b23b8513402c648c59d (patch)
treeec788c44c58ed78c89142b7e64ac04462d622772 /awk.h
parent4d44431ecc06af0cc82a45c3317a8895c01c004a (diff)
downloadegawk-9d8d0cf6e83832f2d9902b23b8513402c648c59d.tar.gz
egawk-9d8d0cf6e83832f2d9902b23b8513402c648c59d.tar.bz2
egawk-9d8d0cf6e83832f2d9902b23b8513402c648c59d.zip
Optimize tail-recursive calls.
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/awk.h b/awk.h
index f65426b7..2bb325b6 100644
--- a/awk.h
+++ b/awk.h
@@ -459,6 +459,7 @@ typedef struct exp_node {
#define func_node sub.nodep.x.extra
#define prev_frame_size sub.nodep.reflags
#define reti sub.nodep.l.li
+#define num_tail_calls sub.nodep.cnt
/* Node_var: */
#define var_value lnode
@@ -728,7 +729,6 @@ typedef struct exp_instruction {
#define lextok d.name
#define param_count x.xl
-
/* Op_rule */
#define in_rule x.xl
#define source_file d.name
@@ -765,7 +765,7 @@ typedef struct exp_instruction {
#define func_body x.xn
/* Op_func_call */
-#define inrule d.dl
+#define tail_call d.dl
/* Op_subscript */
#define sub_count d.dl