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.h13
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
373typedef struct 373typedef 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
404boolean compilerSetup(gameGlobals *ourGlobals); 399boolean compilerSetup(gameGlobals *ourGlobals);
405boolean compileLSL(LuaSL_compiler *lCompiler); 400void compileLSL(LuaCompiler *compiler);
406void burnLeaf(void *data); 401void burnLeaf(void *data);
407 402
408LSL_Leaf *addBlock(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); 403LSL_Leaf *addBlock(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right);