aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_LSL_tree.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-12 02:34:41 +1000
committerDavid Walter Seikel2012-02-12 02:34:41 +1000
commit16fce1165cebdf772f39d9af55c4ee024c57d18a (patch)
tree682caa7aac682e737df71d9cfc69bb002fee56d3 /LuaSL/src/LuaSL_LSL_tree.h
parentMake sendBack and Forth varargs. (diff)
downloadSledjHamr-16fce1165cebdf772f39d9af55c4ee024c57d18a.zip
SledjHamr-16fce1165cebdf772f39d9af55c4ee024c57d18a.tar.gz
SledjHamr-16fce1165cebdf772f39d9af55c4ee024c57d18a.tar.bz2
SledjHamr-16fce1165cebdf772f39d9af55c4ee024c57d18a.tar.xz
Implement compilerError() and compilerWarning(), and pass the client to the compiler so it can use them..
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LuaSL_LSL_tree.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h
index 286d22d..600fb6f 100644
--- a/LuaSL/src/LuaSL_LSL_tree.h
+++ b/LuaSL/src/LuaSL_LSL_tree.h
@@ -387,6 +387,7 @@ Need to do something about that.
387typedef struct 387typedef struct
388{ 388{
389 gameGlobals *game; 389 gameGlobals *game;
390 Ecore_Con_Client *client;
390 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. 391 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.
391 int argc; 392 int argc;
392 char **argv; 393 char **argv;
@@ -415,7 +416,7 @@ typedef struct
415 416
416 417
417boolean compilerSetup(gameGlobals *game); 418boolean compilerSetup(gameGlobals *game);
418boolean compileLSL(gameGlobals *game, char *script, boolean doConstants); 419boolean compileLSL(gameGlobals *game, Ecore_Con_Client *client, char *script, boolean doConstants);
419void burnLeaf(void *data); 420void burnLeaf(void *data);
420 421
421LSL_Leaf *addBlock(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right); 422LSL_Leaf *addBlock(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval, LSL_Leaf *right);