aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_compile.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-11 21:52:01 +1000
committerDavid Walter Seikel2012-02-11 21:52:01 +1000
commitecfd92304e2d746d97e80d925ba44156f7eb1299 (patch)
tree4ed2ec0bc80815cde9cd2fbb4859c9ae40cc1541 /LuaSL/src/LuaSL_compile.c
parentNeaten things up a bit. (diff)
downloadSledjHamr-ecfd92304e2d746d97e80d925ba44156f7eb1299.zip
SledjHamr-ecfd92304e2d746d97e80d925ba44156f7eb1299.tar.gz
SledjHamr-ecfd92304e2d746d97e80d925ba44156f7eb1299.tar.bz2
SledjHamr-ecfd92304e2d746d97e80d925ba44156f7eb1299.tar.xz
Remove excess output.
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LuaSL_compile.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c
index a65b84b..805f26e 100644
--- a/LuaSL/src/LuaSL_compile.c
+++ b/LuaSL/src/LuaSL_compile.c
@@ -2168,8 +2168,6 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants)
2168 PE("Error opening file %s.", compiler.fileName); 2168 PE("Error opening file %s.", compiler.fileName);
2169 return FALSE; 2169 return FALSE;
2170 } 2170 }
2171 printf("\n");
2172 PD("Compiling %s.", compiler.fileName);
2173 compiler.ast = NULL; 2171 compiler.ast = NULL;
2174 compiler.lval = newLeaf(LSL_UNKNOWN, NULL, NULL); 2172 compiler.lval = newLeaf(LSL_UNKNOWN, NULL, NULL);
2175 // Text editors usually start counting at 1, even programmers editors. mcedit is an exception, but you can deal with that yourself. 2173 // Text editors usually start counting at 1, even programmers editors. mcedit is an exception, but you can deal with that yourself.
@@ -2199,7 +2197,7 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants)
2199 2197
2200 if (compiler.undeclared) 2198 if (compiler.undeclared)
2201 { 2199 {
2202 PW("A second pass is needed to check if functions where used before they where declared. To avoid this second pass, don't do that."); 2200// PW("A second pass is needed to check if functions where used before they where declared. To avoid this second pass, don't do that.");
2203 if (eina_clist_count(&(compiler.danglingCalls))) 2201 if (eina_clist_count(&(compiler.danglingCalls)))
2204 { 2202 {
2205 LSL_FunctionCall *call = NULL; 2203 LSL_FunctionCall *call = NULL;
@@ -2221,7 +2219,7 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants)
2221 } 2219 }
2222 } 2220 }
2223 secondPass(&compiler, compiler.ast); 2221 secondPass(&compiler, compiler.ast);
2224 PD("Second pass completed."); 2222// PD("Second pass completed.");
2225 } 2223 }
2226 2224
2227 if (doConstants) 2225 if (doConstants)
@@ -2327,8 +2325,8 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants)
2327 { 2325 {
2328 if (compiler.script.warningCount) 2326 if (compiler.script.warningCount)
2329 PW("%d errors and %d warnings in %s", compiler.script.bugCount, compiler.script.warningCount, compiler.fileName); 2327 PW("%d errors and %d warnings in %s", compiler.script.bugCount, compiler.script.warningCount, compiler.fileName);
2330 else 2328// else
2331 PI("%d errors and %d warnings in %s", compiler.script.bugCount, compiler.script.warningCount, compiler.fileName); 2329// PI("%d errors and %d warnings in %s", compiler.script.bugCount, compiler.script.warningCount, compiler.fileName);
2332 result = TRUE; 2330 result = TRUE;
2333 } 2331 }
2334 } 2332 }