]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Removing some debug output
authorWolfgang Bumiller <wolfgang.linux@bumiller.com>
Fri, 27 Jul 2012 10:28:14 +0000 (12:28 +0200)
committerWolfgang Bumiller <wolfgang.linux@bumiller.com>
Fri, 27 Jul 2012 10:28:14 +0000 (12:28 +0200)
parser.c

index 81dda629df4c25314ca54f9208629b7b7cf6df08..ddb81d1ef6adcd6ff36b40d752e3fbe4de783e75 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -278,7 +278,6 @@ static bool parser_sy_pop(parser_t *parser, shunt *sy)
         vars[i]  = sy->out[sy->out_count+i].value;
     }
 
-    printf("Applying operator %s\n", op->op);
     switch (op->id)
     {
         default:
@@ -418,7 +417,6 @@ static ast_expression* parser_expression(parser_t *parser)
                     parseerror(parser, "out of memory");
                     goto onerr;
                 }
-                printf("Added: %s\n", var->name);
             }
             else if (parser->tok == TOKEN_FLOATCONST) {
                 ast_value *val = parser_const_float(parser, (parser_token(parser)->constval.f));
@@ -437,7 +435,6 @@ static ast_expression* parser_expression(parser_t *parser)
                     parseerror(parser, "out of memory");
                     goto onerr;
                 }
-                printf("Added: %i\n", parser_token(parser)->constval.i);
             }
             else if (parser->tok == '(') {
                 nextwant = false; /* not expecting an operator next */
@@ -457,7 +454,6 @@ static ast_expression* parser_expression(parser_t *parser)
             if (parser->tok == ')') {
                 /* we do expect an operator next */
                 /* closing an opening paren */
-                printf("Applying closing paren\n");
                 if (!sy.ops_count) {
                     parseerror(parser, "unmatched closing paren");
                     goto onerr;
@@ -515,7 +511,6 @@ static ast_expression* parser_expression(parser_t *parser)
 
                 if (!shunt_ops_add(&sy, syop(parser_ctx(parser), op)))
                     goto onerr;
-                printf("Added op %s\n", op->op);
             }
             wantop = false;
             parser->lex->flags.noops = true;
@@ -524,7 +519,6 @@ static ast_expression* parser_expression(parser_t *parser)
             goto onerr;
         }
         if (parser->tok == ';') {
-            printf("End of statement\n");
             break;
         }
     }