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.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/libraries/Runnr.h') diff --git a/src/libraries/Runnr.h b/src/libraries/Runnr.h index 63e0afc..a2098d9 100644 --- a/src/libraries/Runnr.h +++ b/src/libraries/Runnr.h @@ -30,6 +30,13 @@ typedef enum typedef struct _LuaCompile LuaCompile; typedef void (* compileCb)(LuaCompile *compiler); +typedef struct _compileMessage +{ + Eina_Clist node; + char *message; + int type, column, line; +} compileMessage; + typedef struct _LuaCompile { char *file, *SID, *luaName; @@ -38,6 +45,7 @@ typedef struct _LuaCompile compileCb parser; compileCb cb; boolean doConstants; + Eina_Clist messages; // HEAD for error and warning messages. } LuaCompiler; typedef struct _script script; -- cgit v1.1