diff options
author | David Walter Seikel | 2012-01-17 16:00:03 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-17 16:00:03 +1000 |
commit | 074369a92f32d3eacb9e1049adb82cf1a0333435 (patch) | |
tree | 4a0c25d407ead9de35a0d18668246a08b8af6f1c | |
parent | Clean up variable declarations. (diff) | |
download | SledjHamr-074369a92f32d3eacb9e1049adb82cf1a0333435.zip SledjHamr-074369a92f32d3eacb9e1049adb82cf1a0333435.tar.gz SledjHamr-074369a92f32d3eacb9e1049adb82cf1a0333435.tar.bz2 SledjHamr-074369a92f32d3eacb9e1049adb82cf1a0333435.tar.xz |
A little cleanup.
-rw-r--r-- | LuaSL/src/LuaSL_LSL_tree.h | 1 | ||||
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 3 |
2 files changed, 2 insertions, 2 deletions
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 | |||
225 | LSL_Block *outerBlock; | 225 | LSL_Block *outerBlock; |
226 | // Eina_Hash *statements; // Probably should be some sort of eina list. | 226 | // Eina_Hash *statements; // Probably should be some sort of eina list. |
227 | Eina_Hash *variables; // Those variables in this scope. | 227 | Eina_Hash *variables; // Those variables in this scope. |
228 | int scount; | ||
229 | }; | 228 | }; |
230 | 229 | ||
231 | struct _LSL_Function | 230 | 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) | |||
212 | 212 | ||
213 | static LSL_Leaf *findVariable(LuaSL_compiler *compiler, const char *name) | 213 | static LSL_Leaf *findVariable(LuaSL_compiler *compiler, const char *name) |
214 | { | 214 | { |
215 | LSL_Block *block = compiler->currentBlock; | ||
216 | LSL_Leaf *var = NULL; | 215 | LSL_Leaf *var = NULL; |
217 | 216 | ||
218 | if (name) | 217 | if (name) |
219 | { | 218 | { |
219 | LSL_Block *block = compiler->currentBlock; | ||
220 | |||
220 | while ((block) && (NULL == var)) | 221 | while ((block) && (NULL == var)) |
221 | { | 222 | { |
222 | if (block->variables) | 223 | if (block->variables) |