scc

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

commit f3a5df345c3a7056c4298d4d2fe5034f19303897
parent 5e2de268e633d028c222d3c2bd18a1b3f947502b
Author: Sören Tempel <soeren+git@soeren-tempel.net>
Date:   Tue, 25 Aug 2015 09:01:12 +0200

Fix generror awk script

{ is a special character that must be protected in patterns

Diffstat:
Mcc2/generror | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc2/generror b/cc2/generror @@ -3,7 +3,7 @@ BEGIN { print "char *errlist[] = {" } -/^enum nerrors {/ { +/^enum nerrors \{/ { inhome = 1 } inhome && /E[A-Z]*, / {