From 36d53f5a915df03bd45c5a2ef4b8a012acaade27 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sun, 5 Feb 2006 16:12:50 +0000 Subject: [PATCH] *** empty log message *** --- ase/awk/parse.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ase/awk/parse.c b/ase/awk/parse.c index 37146586..78e54e05 100644 --- a/ase/awk/parse.c +++ b/ase/awk/parse.c @@ -1,5 +1,5 @@ /* - * $Id: parse.c,v 1.49 2006-02-05 16:08:23 bacon Exp $ + * $Id: parse.c,v 1.50 2006-02-05 16:12:50 bacon Exp $ */ #include @@ -622,6 +622,10 @@ static xp_awk_node_t* __parse_block (xp_awk_t* awk, xp_bool_t is_top) block->next = XP_NULL; block->body = head; +/* TODO: not only local variables but also etsted blocks, +unless it is part of other constructs such as if, can be promoted +and merged to top-level block */ + /* migrate all block-local variables to a top-level block */ if (is_top) { block->nlocals = awk->parse.nlocals_max - nlocals;