diff options
author | David Walter Seikel | 2012-01-18 14:53:56 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-18 14:53:56 +1000 |
commit | 10319e55b4332a2778d267033f8f24d80dfdac9f (patch) | |
tree | 6277759af4e891a1670a29bccc4d6db9a991a366 | |
parent | Fix up negate, and bool_not integer. (diff) | |
download | SledjHamr-10319e55b4332a2778d267033f8f24d80dfdac9f.zip SledjHamr-10319e55b4332a2778d267033f8f24d80dfdac9f.tar.gz SledjHamr-10319e55b4332a2778d267033f8f24d80dfdac9f.tar.bz2 SledjHamr-10319e55b4332a2778d267033f8f24d80dfdac9f.tar.xz |
Variables in the symbol table are AST leaves, NOT LSL_Identifiers.
Took a while to track this down.
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index 11860ad..c2efd8e 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c | |||
@@ -420,10 +420,10 @@ LSL_Leaf *addFunction(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *identi | |||
420 | { | 420 | { |
421 | if (params->value.listValue) | 421 | if (params->value.listValue) |
422 | { | 422 | { |
423 | LSL_Identifier *identifier = params->value.listValue->value.identifierValue; | 423 | LSL_Leaf *param = params->value.listValue; |
424 | 424 | ||
425 | if (identifier) | 425 | if (identifier) |
426 | eina_hash_add(func->variables, identifier->name, identifier); | 426 | eina_hash_add(func->variables, param->value.identifierValue->name, param); |
427 | } | 427 | } |
428 | params = params->left; | 428 | params = params->left; |
429 | } | 429 | } |
@@ -1218,3 +1218,4 @@ int main(int argc, char **argv) | |||
1218 | return 0; | 1218 | return 0; |
1219 | } | 1219 | } |
1220 | #endif | 1220 | #endif |
1221 | |||