shithub: scc

Download patch

ref: 7558a958dce0e844ed04694c69e99cddb95d190d
parent: 5eb6c9dd70e390d3a92f27b40d4d0cb7aa0ae03e
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed May 28 10:07:30 EDT 2014

Create a context in compound statements

--- a/cc1/stmt.c
+++ b/cc1/stmt.c
@@ -307,7 +307,7 @@
 
 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;