diff options
author | David Walter Seikel | 2012-02-03 16:08:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-02-03 16:08:13 +1000 |
commit | 02ab4f08017dd1617ed8db5cb7916913b2d16e11 (patch) | |
tree | e0219abd970c634874d86c8774af8e522708415b /LuaSL/src | |
parent | Comment even tricksier bit crement cases. (diff) | |
download | SledjHamr-02ab4f08017dd1617ed8db5cb7916913b2d16e11.zip SledjHamr-02ab4f08017dd1617ed8db5cb7916913b2d16e11.tar.gz SledjHamr-02ab4f08017dd1617ed8db5cb7916913b2d16e11.tar.bz2 SledjHamr-02ab4f08017dd1617ed8db5cb7916913b2d16e11.tar.xz |
Translating crements to Lua is damned hard. Leaving it for later, but let it compile at least.
Diffstat (limited to 'LuaSL/src')
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 12 |
1 files 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) | |||
1950 | Damn, gotta put the function call out BEFORE the statment, which has already been put out. | 1950 | Damn, gotta put the function call out BEFORE the statment, which has already been put out. |
1951 | Trickier case - while (++i) | 1951 | Trickier case - while (++i) |
1952 | */ | 1952 | */ |
1953 | outputText(file, &(content->value.identifierValue->name), FALSE); | 1953 | // outputText(file, &(content->value.identifierValue->name), FALSE); |
1954 | if (LSL_DECREMENT_PRE == content->toKen->type) | 1954 | if (LSL_DECREMENT_PRE == content->toKen->type) |
1955 | fprintf(file, " = preDecrement("); | 1955 | fprintf(file, " preDecrement("); |
1956 | else | 1956 | else |
1957 | fprintf(file, " = preIncrement("); | 1957 | fprintf(file, " preIncrement("); |
1958 | #if LUASL_DIFF_CHECK | 1958 | #if LUASL_DIFF_CHECK |
1959 | if (content->value.identifierValue->ignorable) | 1959 | if (content->value.identifierValue->ignorable) |
1960 | fwrite(eina_strbuf_string_get(content->value.identifierValue->ignorable), 1, eina_strbuf_length_get(content->value.identifierValue->ignorable), file); | 1960 | 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) | |||
1970 | Find the end of the statement and put it there. | 1970 | Find the end of the statement and put it there. |
1971 | Bound to be a trickier case as above. lol | 1971 | Bound to be a trickier case as above. lol |
1972 | */ | 1972 | */ |
1973 | outputText(file, &(content->value.identifierValue->name), FALSE); | 1973 | // outputText(file, &(content->value.identifierValue->name), FALSE); |
1974 | if (LSL_DECREMENT_POST == content->toKen->type) | 1974 | if (LSL_DECREMENT_POST == content->toKen->type) |
1975 | fprintf(file, " = postDecrement("); | 1975 | fprintf(file, " postDecrement("); |
1976 | else | 1976 | else |
1977 | fprintf(file, " = postIncrement("); | 1977 | fprintf(file, " postIncrement("); |
1978 | #if LUASL_DIFF_CHECK | 1978 | #if LUASL_DIFF_CHECK |
1979 | if (content->value.identifierValue->ignorable) | 1979 | if (content->value.identifierValue->ignorable) |
1980 | fwrite(eina_strbuf_string_get(content->value.identifierValue->ignorable), 1, eina_strbuf_length_get(content->value.identifierValue->ignorable), file); | 1980 | fwrite(eina_strbuf_string_get(content->value.identifierValue->ignorable), 1, eina_strbuf_length_get(content->value.identifierValue->ignorable), file); |