diff options
author | David Walter Seikel | 2014-08-09 20:09:28 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-08-09 20:09:28 +1000 |
commit | b4dae31e4a688dea7779b83451b8179437b9c0c3 (patch) | |
tree | 4f3ca77c787a8d6ab6f29ee47d5100b4d8ef1855 /src/libraries | |
parent | Mention compiler speed even if the last one failed. (diff) | |
download | SledjHamr-b4dae31e4a688dea7779b83451b8179437b9c0c3.zip SledjHamr-b4dae31e4a688dea7779b83451b8179437b9c0c3.tar.gz SledjHamr-b4dae31e4a688dea7779b83451b8179437b9c0c3.tar.bz2 SledjHamr-b4dae31e4a688dea7779b83451b8179437b9c0c3.tar.xz |
Major cleanup of compileLSL() and friends, including threading it.
Diffstat (limited to 'src/libraries')
-rw-r--r-- | src/libraries/Runnr.c | 2 | ||||
-rw-r--r-- | src/libraries/Runnr.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/libraries/Runnr.c b/src/libraries/Runnr.c index fb6bb5a..8d84543 100644 --- a/src/libraries/Runnr.c +++ b/src/libraries/Runnr.c | |||
@@ -423,6 +423,8 @@ static void _compileThread(void *data, Ecore_Thread *thread) | |||
423 | FILE *out; | 423 | FILE *out; |
424 | int err; | 424 | int err; |
425 | 425 | ||
426 | if (compiler->parser) compiler->parser(compiler); | ||
427 | |||
426 | strcpy(name, compiler->luaName); | 428 | strcpy(name, compiler->luaName); |
427 | if ((L = luaL_newstate())) | 429 | if ((L = luaL_newstate())) |
428 | { | 430 | { |
diff --git a/src/libraries/Runnr.h b/src/libraries/Runnr.h index 6fe7a11..f5f6960 100644 --- a/src/libraries/Runnr.h +++ b/src/libraries/Runnr.h | |||
@@ -36,6 +36,7 @@ typedef struct _LuaCompile | |||
36 | int bugCount; | 36 | int bugCount; |
37 | void *data; | 37 | void *data; |
38 | Ecore_Con_Client *client; | 38 | Ecore_Con_Client *client; |
39 | compileCb parser; | ||
39 | compileCb cb; | 40 | compileCb cb; |
40 | } LuaCompiler; | 41 | } LuaCompiler; |
41 | 42 | ||