diff options
author | David Walter Seikel | 2012-01-21 22:34:46 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-21 22:34:46 +1000 |
commit | f136a1af33253a4149c4a3a366845727f36d6567 (patch) | |
tree | 91632ebd52ff1525056a8820fcdb547c0c43d940 /LuaSL/src/LuaSL_compile.c | |
parent | Forgot a script to rename. (diff) | |
download | SledjHamr-f136a1af33253a4149c4a3a366845727f36d6567.zip SledjHamr-f136a1af33253a4149c4a3a366845727f36d6567.tar.gz SledjHamr-f136a1af33253a4149c4a3a366845727f36d6567.tar.bz2 SledjHamr-f136a1af33253a4149c4a3a366845727f36d6567.tar.xz |
Disable some of the output, and compile every script in the test sim.
Diffstat (limited to '')
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index cb64038..18deda3 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c | |||
@@ -1015,9 +1015,9 @@ static LSL_Leaf *evaluateStatementToken(LSL_Leaf *content, LSL_Leaf *left, LSL_L | |||
1015 | { | 1015 | { |
1016 | switch (result->basicType) | 1016 | switch (result->basicType) |
1017 | { | 1017 | { |
1018 | case OT_float : printf("\nResult is the float %g.\n", result->value.floatValue); break; | 1018 | case OT_float : printf("Result is the float %g.\n", result->value.floatValue); break; |
1019 | case OT_integer : printf("\nResult is the integer %d.\n", result->value.integerValue); break; | 1019 | case OT_integer : printf("Result is the integer %d.\n", result->value.integerValue); break; |
1020 | default : printf("\nResult of an unknown type [%d] %d!\n", result->basicType, result->value.integerValue); break; | 1020 | default : /*printf("\nResult of an unknown type [%d] %d!\n", result->basicType, result->value.integerValue);*/ break; |
1021 | } | 1021 | } |
1022 | free(result); | 1022 | free(result); |
1023 | result = NULL; | 1023 | result = NULL; |
@@ -1184,10 +1184,10 @@ static void doneParsing(LuaSL_compiler *compiler) | |||
1184 | char outName[PATH_MAX]; | 1184 | char outName[PATH_MAX]; |
1185 | char luaName[PATH_MAX]; | 1185 | char luaName[PATH_MAX]; |
1186 | 1186 | ||
1187 | outputLeaf(stdout, OM_LSL, compiler->ast); | 1187 | // outputLeaf(stdout, OM_LSL, compiler->ast); |
1188 | printf("\n"); | 1188 | // printf("\n"); |
1189 | evaluateLeaf(compiler->ast, NULL, NULL); | 1189 | evaluateLeaf(compiler->ast, NULL, NULL); |
1190 | printf("\n"); | 1190 | // printf("\n"); |
1191 | 1191 | ||
1192 | strcpy(outName, compiler->fileName); | 1192 | strcpy(outName, compiler->fileName); |
1193 | strcat(outName, "2"); | 1193 | strcat(outName, "2"); |
@@ -1285,6 +1285,7 @@ Eina_Bool compileLSL(gameGlobals *game, char *script, boolean doConstants) | |||
1285 | PE("Error opening file %s.", compiler.fileName); | 1285 | PE("Error opening file %s.", compiler.fileName); |
1286 | return FALSE; | 1286 | return FALSE; |
1287 | } | 1287 | } |
1288 | printf("\n"); | ||
1288 | PI("Opened %s.", compiler.fileName); | 1289 | PI("Opened %s.", compiler.fileName); |
1289 | compiler.ast = NULL; | 1290 | compiler.ast = NULL; |
1290 | compiler.lval = newLeaf(LSL_UNKNOWN, NULL, NULL); | 1291 | compiler.lval = newLeaf(LSL_UNKNOWN, NULL, NULL); |