From 074369a92f32d3eacb9e1049adb82cf1a0333435 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 17 Jan 2012 16:00:03 +1000 Subject: A little cleanup. --- LuaSL/src/LuaSL_LSL_tree.h | 1 - LuaSL/src/LuaSL_compile.c | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'LuaSL') diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h index 2674542..dee6263 100644 --- a/LuaSL/src/LuaSL_LSL_tree.h +++ b/LuaSL/src/LuaSL_LSL_tree.h @@ -225,7 +225,6 @@ struct _LSL_Block LSL_Block *outerBlock; // Eina_Hash *statements; // Probably should be some sort of eina list. Eina_Hash *variables; // Those variables in this scope. - int scount; }; struct _LSL_Function diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index d750fc4..fdfef47 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c @@ -212,11 +212,12 @@ void burnLeaf(void *data) static LSL_Leaf *findVariable(LuaSL_compiler *compiler, const char *name) { - LSL_Block *block = compiler->currentBlock; LSL_Leaf *var = NULL; if (name) { + LSL_Block *block = compiler->currentBlock; + while ((block) && (NULL == var)) { if (block->variables) -- cgit v1.1