aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/LuaSL/LuaSL_LSL_tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/LuaSL/LuaSL_LSL_tree.h')
-rw-r--r--src/LuaSL/LuaSL_LSL_tree.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/LuaSL/LuaSL_LSL_tree.h b/src/LuaSL/LuaSL_LSL_tree.h
index fca31db..b95b82e 100644
--- a/src/LuaSL/LuaSL_LSL_tree.h
+++ b/src/LuaSL/LuaSL_LSL_tree.h
@@ -370,13 +370,10 @@ Need to do something about that.
370 370
371typedef struct 371typedef struct
372{ 372{
373 gameGlobals *game; 373 LuaCompiler compiler;
374 Ecore_Con_Client *client;
375 void *scanner; // This should be of type yyscan_t, which is typedef to void * anyway, but that does not get defined until LuaSL_lexer.h, which depends on this struct being defined first. 374 void *scanner; // This should be of type yyscan_t, which is typedef to void * anyway, but that does not get defined until LuaSL_lexer.h, which depends on this struct being defined first.
376 int argc; 375 int argc;
377 char **argv; 376 char **argv;
378 char SID[37];
379 char fileName[PATH_MAX];
380 FILE *file; 377 FILE *file;
381 LSL_Leaf *ast; 378 LSL_Leaf *ast;
382 LSL_Script script; 379 LSL_Script script;
@@ -391,6 +388,8 @@ typedef struct
391 int column, line; 388 int column, line;
392 int undeclared; 389 int undeclared;
393 boolean inState; 390 boolean inState;
391 boolean doConstants;
392 boolean result;
394} LuaSL_compiler; 393} LuaSL_compiler;
395 394
396 395
@@ -401,7 +400,7 @@ typedef struct
401 400
402 401
403boolean compilerSetup(gameGlobals *ourGlobals); 402boolean compilerSetup(gameGlobals *ourGlobals);
404boolean compileLSL(LuaCompiler *lCompiler, gameGlobals *ourGlobals, Ecore_Con_Client *client, char *SID, char *script, boolean doConstants); 403boolean compileLSL(LuaSL_compiler *lCompiler);
405void burnLeaf(void *data); 404void burnLeaf(void *data);
406 405
407LSL_Leaf *addBlock(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); 406LSL_Leaf *addBlock(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right);