diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-12 01:35:34 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-12 01:35:34 +0000 |
commit | 08e61bccdfbdea504a137785230ae6bd350c2bdb (patch) | |
tree | 0b23b931023024ad314db7ab444c3734b0baee90 /x2p/Makefile.SH | |
parent | 7e47e6ffb69fd89d20f9c6c3eefbb75792cc109e (diff) | |
download | perl-08e61bccdfbdea504a137785230ae6bd350c2bdb.tar.gz |
Cleanup the a2p.c for -Wall.
p4raw-id: //depot/perl@10526
Diffstat (limited to 'x2p/Makefile.SH')
-rwxr-xr-x | x2p/Makefile.SH | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/x2p/Makefile.SH b/x2p/Makefile.SH index 25085fc883..5db022fd37 100755 --- a/x2p/Makefile.SH +++ b/x2p/Makefile.SH @@ -111,11 +111,20 @@ a2p: $(obj) a2p$(OBJ_EXT) # used only if you force byacc to run by saying # make run_byacc -run_byacc: FORCE +check_byacc: + @$(BYACC) -V 2>&1 | grep 'version 1\.8\.2' + +run_byacc: FORCE check_byacc @ echo Expect many shift/reduce and reduce/reduce conflicts $(BYACC) a2p.y rm -f a2p.c - mv y.tab.c a2p.c + sed -e 's/(yyn = yydefred\[yystate\])/((yyn = yydefred[yystate]))/' \ + -e 's/^yyerrlab://' \ + -e 's/^ goto yyerrlab;//' \ + -e 's/^yynewerror://' \ + -e 's/^ goto yynewerror;//' \ + -e 's|^static char yysccsid\(.*\)|/* static char yysccsid\1 */|' \ + < y.tab.c > a2p.c FORCE: |