summaryrefslogtreecommitdiff
path: root/x2p/Makefile.SH
diff options
context:
space:
mode:
Diffstat (limited to 'x2p/Makefile.SH')
-rwxr-xr-xx2p/Makefile.SH3
1 files changed, 3 insertions, 0 deletions
diff --git a/x2p/Makefile.SH b/x2p/Makefile.SH
index b4c305894c..ba56c49e7b 100755
--- a/x2p/Makefile.SH
+++ b/x2p/Makefile.SH
@@ -124,6 +124,9 @@ run_byacc: FORCE
-e 's/^yynewerror://' \
-e 's/^ goto yynewerror;//' \
-e 's|^static char yysccsid\(.*\)|/* static char yysccsid\1 */|' \
+ -e 's/^\(char \*yyname\[\]\)/const \1/' \
+ -e 's/^\(char \*yyrule\[\]\)/const \1/' \
+ -e 's/^\( register\) \(char \*yys;\)/\1 const \2/' \
< y.tab.c > a2p.c
FORCE: