diff options
author | David Walter Seikel | 2014-05-05 15:08:55 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-05 15:08:55 +1000 |
commit | 334ba10e01c98b8d0ad2901b9ceafa45071050b9 (patch) | |
tree | 3fe60c140f14336ecd314b07d4a528bc7289ba78 /src/LuaSL/LuaSL_compile.c | |
parent | Prepare for using GuiLua from extantz, but not going through with it just yet... (diff) | |
download | SledjHamr-334ba10e01c98b8d0ad2901b9ceafa45071050b9.zip SledjHamr-334ba10e01c98b8d0ad2901b9ceafa45071050b9.tar.gz SledjHamr-334ba10e01c98b8d0ad2901b9ceafa45071050b9.tar.bz2 SledjHamr-334ba10e01c98b8d0ad2901b9ceafa45071050b9.tar.xz |
Make logDom a stand alone, plus related fix ups and some clean ups.
Diffstat (limited to 'src/LuaSL/LuaSL_compile.c')
-rw-r--r-- | src/LuaSL/LuaSL_compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LuaSL/LuaSL_compile.c b/src/LuaSL/LuaSL_compile.c index f32e0c0..3265acf 100644 --- a/src/LuaSL/LuaSL_compile.c +++ b/src/LuaSL/LuaSL_compile.c | |||
@@ -991,7 +991,7 @@ LSL_Leaf *addFor(LuaSL_compiler *compiler, LSL_Leaf *lval, LSL_Leaf *flow, LSL_L | |||
991 | 991 | ||
992 | LSL_Leaf *addStatement(LuaSL_compiler *compiler, LSL_Leaf *lval, LSL_Leaf *flow, LSL_Leaf *left, LSL_Leaf *expr, LSL_Leaf *right, LSL_Leaf *block, LSL_Leaf *identifier) | 992 | LSL_Leaf *addStatement(LuaSL_compiler *compiler, LSL_Leaf *lval, LSL_Leaf *flow, LSL_Leaf *left, LSL_Leaf *expr, LSL_Leaf *right, LSL_Leaf *block, LSL_Leaf *identifier) |
993 | { | 993 | { |
994 | gameGlobals *ourGlobals = compiler->game; | 994 | // gameGlobals *ourGlobals = compiler->game; |
995 | LSL_Statement *stat = calloc(1, sizeof(LSL_Statement)); | 995 | LSL_Statement *stat = calloc(1, sizeof(LSL_Statement)); |
996 | boolean justOne = FALSE; | 996 | boolean justOne = FALSE; |
997 | 997 | ||
@@ -1112,17 +1112,17 @@ LSL_Leaf *addStatement(LuaSL_compiler *compiler, LSL_Leaf *lval, LSL_Leaf *flow, | |||
1112 | } | 1112 | } |
1113 | } | 1113 | } |
1114 | 1114 | ||
1115 | #if LUASL_DIFF_CHECK | ||
1116 | if (justOne && (flow)) | 1115 | if (justOne && (flow)) |
1117 | { | 1116 | { |
1117 | #if LUASL_DIFF_CHECK | ||
1118 | stat->ignorable = calloc(2, sizeof(Eina_Strbuf *)); | 1118 | stat->ignorable = calloc(2, sizeof(Eina_Strbuf *)); |
1119 | if (stat->ignorable) | 1119 | if (stat->ignorable) |
1120 | { | 1120 | { |
1121 | stat->ignorable[1] = flow->ignorable; | 1121 | stat->ignorable[1] = flow->ignorable; |
1122 | flow->ignorable = NULL; | 1122 | flow->ignorable = NULL; |
1123 | } | 1123 | } |
1124 | } | ||
1125 | #endif | 1124 | #endif |
1125 | } | ||
1126 | 1126 | ||
1127 | if (lval) | 1127 | if (lval) |
1128 | { | 1128 | { |