diff options
author | David Walter Seikel | 2014-08-14 08:32:50 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-08-14 08:32:50 +1000 |
commit | 9e8f8dbd9c52d1da132d618573d87650e0a0f7f9 (patch) | |
tree | c9d76f4a95b3ed6b0d8174be2d981ec04cc570a9 /src/libraries/Runnr.h | |
parent | Considerable cleanup of the top level compiling code. (diff) | |
download | SledjHamr-9e8f8dbd9c52d1da132d618573d87650e0a0f7f9.zip SledjHamr-9e8f8dbd9c52d1da132d618573d87650e0a0f7f9.tar.gz SledjHamr-9e8f8dbd9c52d1da132d618573d87650e0a0f7f9.tar.bz2 SledjHamr-9e8f8dbd9c52d1da132d618573d87650e0a0f7f9.tar.xz |
Only collect the errors and warnings during a compile, output them in a batch at the end.
Diffstat (limited to 'src/libraries/Runnr.h')
-rw-r--r-- | src/libraries/Runnr.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 | |||
30 | typedef struct _LuaCompile LuaCompile; | 30 | typedef struct _LuaCompile LuaCompile; |
31 | typedef void (* compileCb)(LuaCompile *compiler); | 31 | typedef void (* compileCb)(LuaCompile *compiler); |
32 | 32 | ||
33 | typedef struct _compileMessage | ||
34 | { | ||
35 | Eina_Clist node; | ||
36 | char *message; | ||
37 | int type, column, line; | ||
38 | } compileMessage; | ||
39 | |||
33 | typedef struct _LuaCompile | 40 | typedef struct _LuaCompile |
34 | { | 41 | { |
35 | char *file, *SID, *luaName; | 42 | char *file, *SID, *luaName; |
@@ -38,6 +45,7 @@ typedef struct _LuaCompile | |||
38 | compileCb parser; | 45 | compileCb parser; |
39 | compileCb cb; | 46 | compileCb cb; |
40 | boolean doConstants; | 47 | boolean doConstants; |
48 | Eina_Clist messages; // HEAD for error and warning messages. | ||
41 | } LuaCompiler; | 49 | } LuaCompiler; |
42 | 50 | ||
43 | typedef struct _script script; | 51 | typedef struct _script script; |