From 10319e55b4332a2778d267033f8f24d80dfdac9f Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 18 Jan 2012 14:53:56 +1000 Subject: Variables in the symbol table are AST leaves, NOT LSL_Identifiers. Took a while to track this down. --- LuaSL/src/LuaSL_compile.c | 5 +++-- 1 file 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 { if (params->value.listValue) { - LSL_Identifier *identifier = params->value.listValue->value.identifierValue; + LSL_Leaf *param = params->value.listValue; if (identifier) - eina_hash_add(func->variables, identifier->name, identifier); + eina_hash_add(func->variables, param->value.identifierValue->name, param); } params = params->left; } @@ -1218,3 +1218,4 @@ int main(int argc, char **argv) return 0; } #endif + -- cgit v1.1