scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 7edc7e439ca0f0a7240f716e9312b477ff7aaed7
parent 8fa3bec21d142b3e8e14b6ae27574081ad0c967f
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 25 Oct 2013 14:58:18 +0200

Remove conflict names in flow.c

File scope identifiers beginning by _ are reserved, so it is an error
having these kind of identifiers as static variables.

Diffstat:
Mflow.c | 44++++++++++++++++++++++----------------------
1 file changed, 22 insertions(+), 22 deletions(-)

diff --git a/flow.c b/flow.c @@ -48,7 +48,7 @@ newlabel(struct symbol *sym, char *s) } static struct node * -_goto(void) +Goto(void) { register struct node *np; register struct symbol *sym; @@ -66,7 +66,7 @@ _goto(void) } static struct node * -_while(void) +While(void) { register struct node *cond, *np; @@ -81,7 +81,7 @@ _while(void) } static struct node * -_do(void) +Do(void) { register struct node *cond, *body, *np; @@ -100,7 +100,7 @@ _do(void) } static struct node * -_for(void) +For(void) { register struct node *exp1, *exp2, *exp3; struct node *np; @@ -123,7 +123,7 @@ _for(void) } static struct node * -_if(void) +If(void) { register struct node *cond, *body; @@ -138,7 +138,7 @@ _if(void) } static struct node * -_switch(void) +Switch(void) { register struct node *cond, *np; @@ -164,7 +164,7 @@ label(void) } static struct node * -_break(void) +Break(void) { expect(BREAK); expect(';'); @@ -174,7 +174,7 @@ _break(void) } static struct node * -_continue(void) +Continue(void) { register unsigned char *bp; @@ -190,7 +190,7 @@ _continue(void) } static struct node * -_return(void) +Return(void) { register struct node *np; @@ -202,7 +202,7 @@ _return(void) } static struct node * -_case(void) +Case(void) { register unsigned char *bp; register struct node *np, *exp; @@ -221,7 +221,7 @@ _case(void) } static struct node * -_default(void) +Default(void) { register unsigned char *bp; @@ -268,17 +268,17 @@ stmt(void) switch (yytoken) { case '{': return compound(); - case SWITCH: return _switch(); - case IF: return _if(); - case FOR: return _for(); - case DO: return _do(); - case WHILE: return _while(); - case CONTINUE: return _continue(); - case BREAK: return _break(); - case RETURN: return _return(); - case GOTO: return _goto(); - case CASE: return _case(); - case DEFAULT: return _default(); + case SWITCH: return Switch(); + case IF: return If(); + case FOR: return For(); + case DO: return Do(); + case WHILE: return While(); + case CONTINUE: return Continue(); + case BREAK: return Break(); + case RETURN: return Return(); + case GOTO: return Goto(); + case CASE: return Case(); + case DEFAULT: return Default(); case IDEN: if (ahead() == ':') return label(); } np = expr();