aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'LuaSL/src/LuaSL_compile.c')
-rw-r--r--LuaSL/src/LuaSL_compile.c13
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);