From f2b30eccfc6bf537233f9349c59ab9de3ac86317 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 28 Jan 2012 10:07:27 +1000 Subject: Document the other Clist use, and change it's name while I'm at it. --- LuaSL/src/LuaSL_LSL_tree.h | 6 +++--- LuaSL/src/LuaSL_compile.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'LuaSL/src') diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h index 4ad5707..f2fccd0 100644 --- a/LuaSL/src/LuaSL_LSL_tree.h +++ b/LuaSL/src/LuaSL_LSL_tree.h @@ -254,8 +254,8 @@ struct _LSL_Function struct _LSL_FunctionCall { LSL_Function *function; - Eina_Inarray params; // Eina Inarray has not been released yet (Eina 1.2). - Eina_Clist functionCall; + Eina_Inarray params; // Eina Inarray has not been released yet (Eina 1.2). + Eina_Clist dangler; // Entry for function calls used before the function is defined. LSL_Leaf *call; }; @@ -356,7 +356,7 @@ typedef struct #endif LSL_Leaf *lval; LSL_Block *currentBlock; - Eina_Clist danglingCalls; + Eina_Clist danglingCalls; // HEAD for function calls used before the function is defined. int column, line; int undeclared; } LuaSL_compiler; diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index 9b13e62..c1a1a5e 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c @@ -577,7 +577,7 @@ LSL_Leaf *addFunctionCall(LuaSL_compiler *compiler, LSL_Leaf *identifier, LSL_Le if (call) { call->function = func->value.functionValue; - eina_clist_element_init(&(call->functionCall)); + eina_clist_element_init(&(call->dangler)); call->call = identifier; } identifier->value.functionCallValue = call; @@ -590,7 +590,7 @@ LSL_Leaf *addFunctionCall(LuaSL_compiler *compiler, LSL_Leaf *identifier, LSL_Le // It may be declared later, so store it and check later. if (call) { - eina_clist_add_tail(&(compiler->danglingCalls), &(call->functionCall)); + eina_clist_add_tail(&(compiler->danglingCalls), &(call->dangler)); call->call = identifier; } identifier->basicType = OT_undeclared; @@ -1373,7 +1373,7 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants) { LSL_FunctionCall *call = NULL; - EINA_CLIST_FOR_EACH_ENTRY(call, &(compiler.danglingCalls), LSL_FunctionCall, functionCall) + EINA_CLIST_FOR_EACH_ENTRY(call, &(compiler.danglingCalls), LSL_FunctionCall, dangler) { LSL_Leaf *func = findFunction(&(compiler), call->call->value.stringValue); -- cgit v1.1