]> ocean-lang.org Git - ocean/commitdiff
oceani: move var_block_close() calls to the code sections that close the block
authorNeilBrown <neil@brown.name>
Sat, 6 Nov 2021 02:04:54 +0000 (13:04 +1100)
committerNeilBrown <neil@brown.name>
Mon, 8 Nov 2021 09:56:36 +0000 (20:56 +1100)
Rather than calling var_block_close() from common non-terminals, move
the calls into the body of the parent non-terminal.  This places them
after the 'struct exec' which represents the scope has been created.

This is needed to attach the variables to the point where their scope is
closed, so they can be freed.

This change helped me focus on some untested - and broken - code.

Signed-off-by: NeilBrown <neil@brown.name>

No differences found