From 9e8f8dbd9c52d1da132d618573d87650e0a0f7f9 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 14 Aug 2014 08:32:50 +1000 Subject: Only collect the errors and warnings during a compile, output them in a batch at the end. --- src/libraries/Runnr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/libraries/Runnr.c') diff --git a/src/libraries/Runnr.c b/src/libraries/Runnr.c index 1f10d33..5fecfdf 100644 --- a/src/libraries/Runnr.c +++ b/src/libraries/Runnr.c @@ -421,9 +421,6 @@ static void _compileEnd(void *data, Ecore_Thread *thread) free(compiler->SID); } -// TODO - Should pass error messages back through a linked list. -// To eventually get passed back to the calling app via compiler->errors and compiler->warnings. -// Will need ageneric "add this formatted string to a linked list" function, in SledjHamr.c static void _compileThread(void *data, Ecore_Thread *thread) { LuaCompiler *compiler = data; @@ -487,6 +484,7 @@ static void _compileThread(void *data, Ecore_Thread *thread) } } +// TODO - Threaded version is consistantly about half the speed. WTF? void compileScript(LuaCompiler *compiler, int threadIt) { if (threadIt) -- cgit v1.1