From 9bfb125df029148a3924fe0072836720a319487c Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 1 Feb 2012 21:34:31 +1000 Subject: Little cleanups. --- LuaSL/src/LuaSL_compile.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'LuaSL/src/LuaSL_compile.c') diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index d9ac1c3..a438a63 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c @@ -814,6 +814,7 @@ LSL_Leaf *addStatement(LuaSL_compiler *compiler, LSL_Leaf *lval, LSL_Leaf *flow, } } +#if LUASL_DIFF_CHECK if (justOne && (flow)) { stat->ignorable = calloc(2, sizeof(Eina_Strbuf *)); @@ -823,6 +824,7 @@ LSL_Leaf *addStatement(LuaSL_compiler *compiler, LSL_Leaf *lval, LSL_Leaf *flow, flow->ignorable = NULL; } } +#endif if (lval) { @@ -927,13 +929,13 @@ LSL_Leaf *beginBlock(LuaSL_compiler *compiler, LSL_Leaf *block) blok->variables = eina_hash_stringshared_new(burnLeaf); block->value.blockValue = blok; blok->outerBlock = compiler->currentBlock; + compiler->currentBlock = blok; + blok->function = compiler->currentFunction; + compiler->currentFunction = NULL; #if LUASL_DIFF_CHECK blok->openIgnorable = block->ignorable; block->ignorable = NULL; #endif - compiler->currentBlock = blok; - blok->function = compiler->currentFunction; - compiler->currentFunction = NULL; } return block; } -- cgit v1.1