mirror of
https://github.com/golang/go.git
synced 2024-10-01 15:27:13 +00:00
gc: patch y.tab.c to fix build when using Bison 2.5
Fixes #1843. R=rsc CC=golang-dev https://golang.org/cl/4535101
This commit is contained in:
parent
5b1fb9d5c6
commit
9ef8ebafe4
@ -49,7 +49,7 @@ include ../../Make.clib
|
||||
install: $(LIB)
|
||||
|
||||
y1.tab.c: y.tab.c # make yystate global, yytname mutable
|
||||
cat y.tab.c | sed '/ int yystate;/d; s/int yychar;/int yychar, yystate;/; s/static const char \*const yytname/const char *yytname/' >y1.tab.c
|
||||
cat y.tab.c | sed '/ int yystate;/d; s/int yychar;/int yychar, yystate;/; s/static const char \*const yytname/const char *yytname/; s/char const \*yymsgp/char *yymsgp/' >y1.tab.c
|
||||
|
||||
yerr.h: bisonerrors go.errors y.tab.h # y.tab.h rule generates y.output too
|
||||
awk -f bisonerrors y.output go.errors >yerr.h
|
||||
|
Loading…
Reference in New Issue
Block a user