scc

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

commit 7558a958dce0e844ed04694c69e99cddb95d190d
parent 5eb6c9dd70e390d3a92f27b40d4d0cb7aa0ae03e
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 28 May 2014 14:07:30 +0200

Create a context in compound statements

Diffstat:
Mcc1/stmt.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc1/stmt.c b/cc1/stmt.c @@ -307,7 +307,7 @@ stmt(Symbol *lbreak, Symbol *lcont, Caselist *lswitch) repeat: switch (yytoken) { - case '{': compound(lbreak, lcont, lswitch); break; + case '{': context(compound, lbreak, lcont, lswitch); break; case RETURN: Return(); break; case WHILE: While(lswitch); break; case FOR: For(lswitch); break;