From 02ab4f08017dd1617ed8db5cb7916913b2d16e11 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 3 Feb 2012 16:08:13 +1000 Subject: Translating crements to Lua is damned hard. Leaving it for later, but let it compile at least. --- LuaSL/src/LuaSL_compile.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index 9f1a374..a73233d 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c @@ -1950,11 +1950,11 @@ static void outputCrementsToken(FILE *file, outputMode mode, LSL_Leaf *content) Damn, gotta put the function call out BEFORE the statment, which has already been put out. Trickier case - while (++i) */ - outputText(file, &(content->value.identifierValue->name), FALSE); +// outputText(file, &(content->value.identifierValue->name), FALSE); if (LSL_DECREMENT_PRE == content->toKen->type) - fprintf(file, " = preDecrement("); + fprintf(file, " preDecrement("); else - fprintf(file, " = preIncrement("); + fprintf(file, " preIncrement("); #if LUASL_DIFF_CHECK if (content->value.identifierValue->ignorable) fwrite(eina_strbuf_string_get(content->value.identifierValue->ignorable), 1, eina_strbuf_length_get(content->value.identifierValue->ignorable), file); @@ -1970,11 +1970,11 @@ static void outputCrementsToken(FILE *file, outputMode mode, LSL_Leaf *content) Find the end of the statement and put it there. Bound to be a trickier case as above. lol */ - outputText(file, &(content->value.identifierValue->name), FALSE); +// outputText(file, &(content->value.identifierValue->name), FALSE); if (LSL_DECREMENT_POST == content->toKen->type) - fprintf(file, " = postDecrement("); + fprintf(file, " postDecrement("); else - fprintf(file, " = postIncrement("); + fprintf(file, " postIncrement("); #if LUASL_DIFF_CHECK if (content->value.identifierValue->ignorable) fwrite(eina_strbuf_string_get(content->value.identifierValue->ignorable), 1, eina_strbuf_length_get(content->value.identifierValue->ignorable), file); -- cgit v1.1