shithub: scc

Download patch

ref: 610912d2b4ceea59e7b760d8362f30460ff2b53a
parent: 6a25f2333af960b52d8a52aab9cb817b2f22dc5a
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Jun 29 18:01:16 EDT 2012

Removed again debug information in parse calls

--- a/expr.c
+++ b/expr.c
@@ -25,7 +25,6 @@
 
 static void primary(void)
 {
-	fputs("static void primary(void)", stderr);
 	switch (yytoken) {
 	case IDEN:
 		if (!yyval.sym)
@@ -40,12 +39,10 @@
 		expect(')');
 		break;
 	}
-	fputs("leaving static void primary(void)", stderr);
 }
 
 static void postfix(void)
 {
-	fputs("static void postfix(void)", stderr);
 	primary();		/* TODO: fix ( case */
 	for (;;) {
 		register void (*fp)(void);
@@ -67,7 +64,6 @@
 		case INC:   fp = gen_postinc; goto next;
 		case DEC:   fp = gen_postdec; goto next;
 		default:
-			fputs("leaving static void postfix(void)", stderr);
 			return;
 		}
 	expect_iden:
@@ -85,7 +81,6 @@
 
 static void unary(void)
 {
-	fputs("static void unary(void)", stderr);
 	for (;;) {
 		register void (*fp)(void);
 		switch (yytoken) {
@@ -109,7 +104,6 @@
 		case '!': fp = gen_neg; goto call_cast;
 		default:
 			postfix();
-			fputs("leaving static void unary(void)", stderr);
 			return;
 		}
 	call_cast:
@@ -127,18 +121,15 @@
 
 static void cast(void)
 {
-	fputs("static void cast(void)", stderr);
 	while (accept('(')) {
 		type_name();	/* check if it really is a type name */
 		expect(')');
 	}
 	unary();
-	fputs("leaving static void cast(void)", stderr);
 }
 
 static void mul(void)
 {
-	fputs("static void mul(void)", stderr);
 	cast();
 	for (;;) {
 		register void (*fp)(void);
@@ -147,7 +138,6 @@
 		case '/': fp = gen_div; break;
 		case '%': fp = gen_mod; break;
 		default:
-			fputs("leaving static void mul(void)", stderr);
 			return;
 		}
 		next();
@@ -158,7 +148,6 @@
 
 static void add(void)
 {
-	fputs("static void add(void)", stderr);
 	mul();
 	for (;;) {
 		register void (*fp)(void);
@@ -166,7 +155,6 @@
 		case '+': fp = gen_add; break;
 		case '-': fp = gen_sub; break;
 		default:
-			fputs("leaving static void add (void)", stderr);
 			return;
 		}
 		next();
@@ -177,7 +165,6 @@
 
 static void shift(void)
 {
-	fputs("static void shift(void)", stderr);
 	add();
 	for (;;) {
 		register void (*fp)(void);
@@ -185,7 +172,6 @@
 		case SHL: fp = gen_shl; break;
 		case SHR: fp = gen_shr; break;
 		default:
-			fputs("leaving static void shift (void)", stderr);
 			return;
 		}
 		next();
@@ -196,7 +182,6 @@
 
 static void relational(void)
 {
-	fputs("static void relational(void)", stderr);
 	shift();
 	for (;;) {
 		register void (*fp)(void);
@@ -206,7 +191,6 @@
 		case GE: fp = gen_ge; break;
 		case LE: fp = gen_le; break;
 		default:
-			fputs("leaving static void relational (void)", stderr);
 			return;
 		}
 		next();
@@ -217,7 +201,6 @@
 
 static void eq(void)
 {
-	fputs("static void eq(void)", stderr);
 	relational();
 	for (;;) {
 		register void (*fp)(void);
@@ -225,7 +208,6 @@
 		case EQ: fp = gen_eq; break;
 		case NE: fp = gen_ne; break;
 		default:
-			fputs("leaving static void eq (void)", stderr);
 			return;
 		}
 		next();
@@ -236,7 +218,6 @@
 
 static void bit_and(void)
 {
-	fputs("static void bit_and(void)", stderr);
 	eq();
 	while (yytoken == '&') {
 		next();
@@ -243,12 +224,10 @@
 		eq();
 		gen_band();
 	}
-	fputs("leaving static void bit_and (void)", stderr);
 }
 
 static void bit_xor(void)
 {
-	fputs("static void bit_xor(void)", stderr);
 	bit_and();
 	while (yytoken == '^') {
 		next();
@@ -255,12 +234,10 @@
 		bit_and();
 		gen_bxor();
 	}
-	fputs("leaving static void bit_xor(void)", stderr);
 }
 
 static void bit_or(void)
 {
-	fputs("static void bit_or(void)", stderr);
 	bit_xor();
 	while (yytoken == '|') {
 		next();
@@ -267,12 +244,10 @@
 		bit_xor();
 		gen_bor();
 	}
-	fputs("leaving static void bit_or(void)", stderr);
 }
 
 static void and(void)
 {
-	fputs("static void and(void)", stderr);
 	bit_or();
 	while (yytoken == AND) {
 		next();
@@ -279,12 +254,10 @@
 		bit_or();
 		gen_and();
 	}
-	fputs("leaving static void and(void)", stderr);
 }
 
 static void or(void)
 {
-	fputs("static void or(void)", stderr);
 	and();
 	while (yytoken == OR) {
 		next();
@@ -291,12 +264,10 @@
 		and();
 		gen_or();
 	}
-	fputs("leaving static void or(void)", stderr);
 }
 
 static void cond(void)
 {
-	fputs("static void cond(void)", stderr);
 	or();
 	while (yytoken == '?') {
 			expr();
@@ -304,12 +275,10 @@
 			or();
 			gen_tern();
 	}
-	fputs("leaving static void cond(void)", stderr);
 }
 
 static void assign(void)
 {
-	fputs("static void assign(void)", stderr);
 	cond();
 	for (;;) {
 		register void (*fp)(void);
@@ -326,7 +295,6 @@
 		case XOR_EQ: fp = gen_a_xor; break;
 		case OR_EQ: fp = gen_a_or; break;
 		default:
-			fputs("static void assign (void)", stderr);
 			return;
 		}
 		next();
@@ -337,7 +305,6 @@
 
 void expr(void)
 {
-	fputs("void expr(void)", stderr);
 	do
 		assign();
 	while (yytoken == ',');