aboutsummaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-09-25 12:58:05 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-09-25 12:58:05 +0200
commitb9a82851866f84ca306a2802b4ca50089a2fe683 (patch)
tree1f9928af8fc5f46589275992e6c6e7295e7a5924 /profile.c
parenteb2698f49247c94c84e1e2c2304ba94d96c89bc9 (diff)
downloadegawk-b9a82851866f84ca306a2802b4ca50089a2fe683.tar.gz
egawk-b9a82851866f84ca306a2802b4ca50089a2fe683.tar.bz2
egawk-b9a82851866f84ca306a2802b4ca50089a2fe683.zip
First cut at SYMTAB and FUNCTAB.
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/profile.c b/profile.c
index 16aa1cdd..dfac5c10 100644
--- a/profile.c
+++ b/profile.c
@@ -37,8 +37,9 @@ static NODE *pp_pop(void);
static void pp_free(NODE *n);
const char *redir2str(int redirtype);
-#define pp_str hname
-#define pp_len hlength
+#define pp_str vname
+#define pp_len sub.nodep.reserved
+#define pp_next rnode
#define DONT_FREE 1
#define CAN_FREE 2
@@ -135,7 +136,7 @@ pp_push(int type, char *s, int flag)
n->pp_len = strlen(s);
n->flags = flag;
n->type = type;
- n->hnext = pp_stack;
+ n->pp_next = pp_stack;
pp_stack = n;
}
@@ -144,7 +145,7 @@ pp_pop()
{
NODE *n;
n = pp_stack;
- pp_stack = n->hnext;
+ pp_stack = n->pp_next;
return n;
}