diff options
Diffstat (limited to '')
-rw-r--r-- | src/LuaSL/LuaSL_LSL_tree.h | 9 |
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 | ||
371 | typedef struct | 371 | typedef 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 | ||
403 | boolean compilerSetup(gameGlobals *ourGlobals); | 402 | boolean compilerSetup(gameGlobals *ourGlobals); |
404 | boolean compileLSL(LuaCompiler *lCompiler, gameGlobals *ourGlobals, Ecore_Con_Client *client, char *SID, char *script, boolean doConstants); | 403 | boolean compileLSL(LuaSL_compiler *lCompiler); |
405 | void burnLeaf(void *data); | 404 | void burnLeaf(void *data); |
406 | 405 | ||
407 | LSL_Leaf *addBlock(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); | 406 | LSL_Leaf *addBlock(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); |