summaryrefslogtreecommitdiff
path: root/x2p/a2p.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-12 01:35:34 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-12 01:35:34 +0000
commit08e61bccdfbdea504a137785230ae6bd350c2bdb (patch)
tree0b23b931023024ad314db7ab444c3734b0baee90 /x2p/a2p.c
parent7e47e6ffb69fd89d20f9c6c3eefbb75792cc109e (diff)
downloadperl-08e61bccdfbdea504a137785230ae6bd350c2bdb.tar.gz
Cleanup the a2p.c for -Wall.
p4raw-id: //depot/perl@10526
Diffstat (limited to 'x2p/a2p.c')
-rw-r--r--x2p/a2p.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/x2p/a2p.c b/x2p/a2p.c
index cd667a3f29..4cf6c5115c 100644
--- a/x2p/a2p.c
+++ b/x2p/a2p.c
@@ -1,5 +1,5 @@
#ifndef lint
-static char yysccsid[] = "@(#)yaccpar 1.8 (Berkeley) 01/20/91";
+/* static char yysccsid[] = "@(#)yaccpar 1.8 (Berkeley) 01/20/91"; */
#endif
#define YYBYACC 1
#line 2 "a2p.y"
@@ -2087,9 +2087,8 @@ yyparse()
register int yym, yyn, yystate;
#if YYDEBUG
register char *yys;
-#ifndef __cplusplus
extern char *getenv();
-#endif
+
if (yys = getenv("YYDEBUG"))
{
yyn = *yys;
@@ -2107,7 +2106,7 @@ yyparse()
*yyssp = yystate = 0;
yyloop:
- if (yyn = yydefred[yystate]) goto yyreduce;
+ if ((yyn = yydefred[yystate])) goto yyreduce;
if (yychar < 0)
{
if ((yychar = yylex()) < 0) yychar = 0;
@@ -2148,14 +2147,14 @@ yyloop:
}
if (yyerrflag) goto yyinrecovery;
#ifdef lint
- goto yynewerror;
+
#endif
-yynewerror:
+
yyerror("syntax error");
#ifdef lint
- goto yyerrlab;
+
#endif
-yyerrlab:
+
++yynerrs;
yyinrecovery:
if (yyerrflag < 3)