diff options
Diffstat (limited to '')
-rw-r--r-- | src/LuaSL/LuaSL_LSL_tree.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/LuaSL/LuaSL_LSL_tree.h b/src/LuaSL/LuaSL_LSL_tree.h index 5b61926..b08d1db 100644 --- a/src/LuaSL/LuaSL_LSL_tree.h +++ b/src/LuaSL/LuaSL_LSL_tree.h | |||
@@ -5,7 +5,7 @@ | |||
5 | #define LUASL_DEBUG 0 | 5 | #define LUASL_DEBUG 0 |
6 | #define COMPILE_THREADED 0 | 6 | #define COMPILE_THREADED 0 |
7 | #define LUASL_DIFF_CHECK 0 | 7 | #define LUASL_DIFF_CHECK 0 |
8 | #define LUASL_BAD_CHECK 0 | 8 | #define LUASL_BAD_CHECK 1 |
9 | 9 | ||
10 | 10 | ||
11 | #include <stddef.h> // So we can have NULL defined. | 11 | #include <stddef.h> // So we can have NULL defined. |
@@ -300,7 +300,7 @@ struct _LSL_Script | |||
300 | Eina_Hash *functions; | 300 | Eina_Hash *functions; |
301 | Eina_Hash *states; | 301 | Eina_Hash *states; |
302 | Eina_Hash *variables; | 302 | Eina_Hash *variables; |
303 | int bugCount, warningCount; | 303 | int warningCount; |
304 | }; | 304 | }; |
305 | 305 | ||
306 | /* Tracking variables. | 306 | /* Tracking variables. |
@@ -372,11 +372,8 @@ Need to do something about that. | |||
372 | 372 | ||
373 | typedef struct | 373 | typedef struct |
374 | { | 374 | { |
375 | LuaCompiler compiler; | 375 | LuaCompiler *compiler; |
376 | 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 | 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. |
377 | int argc; | ||
378 | char **argv; | ||
379 | FILE *file; | ||
380 | LSL_Leaf *ast; | 377 | LSL_Leaf *ast; |
381 | LSL_Script script; | 378 | LSL_Script script; |
382 | LSL_State state; | 379 | LSL_State state; |
@@ -390,8 +387,6 @@ typedef struct | |||
390 | int column, line; | 387 | int column, line; |
391 | int undeclared; | 388 | int undeclared; |
392 | boolean inState; | 389 | boolean inState; |
393 | boolean doConstants; | ||
394 | boolean result; | ||
395 | } LuaSL_compiler; | 390 | } LuaSL_compiler; |
396 | 391 | ||
397 | 392 | ||
@@ -402,7 +397,7 @@ typedef struct | |||
402 | 397 | ||
403 | 398 | ||
404 | boolean compilerSetup(gameGlobals *ourGlobals); | 399 | boolean compilerSetup(gameGlobals *ourGlobals); |
405 | boolean compileLSL(LuaSL_compiler *lCompiler); | 400 | void compileLSL(LuaCompiler *compiler); |
406 | void burnLeaf(void *data); | 401 | void burnLeaf(void *data); |
407 | 402 | ||
408 | LSL_Leaf *addBlock(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); | 403 | LSL_Leaf *addBlock(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); |