From: Richard M. Stallman Date: Sun, 4 Jul 1993 20:07:28 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: GNU_ORIG~92 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/fb75fa822d8c8cc89759fe633a36ea5c79bee134 *** empty log message *** --- diff --git a/bison.simple b/bison.simple index d8b16340..49c8b857 100644 --- a/bison.simple +++ b/bison.simple @@ -442,7 +442,8 @@ yydefault: /* Do a reduction. yyn is the number of a rule to reduce with. */ yyreduce: yylen = yyr2[yyn]; - yyval = yyvsp[1-yylen]; /* implement default value of the action */ + if (yylen > 0) + yyval = yyvsp[1-yylen]; /* implement default value of the action */ #if YYDEBUG != 0 if (yydebug) @@ -460,7 +461,7 @@ yyreduce: #endif $ /* the action file gets copied in in place of this dollarsign */ -#line 464 "bison.simple" +#line 465 "bison.simple" yyvsp -= yylen; yyssp -= yylen; diff --git a/src/bison.s1 b/src/bison.s1 index d8b16340..49c8b857 100644 --- a/src/bison.s1 +++ b/src/bison.s1 @@ -442,7 +442,8 @@ yydefault: /* Do a reduction. yyn is the number of a rule to reduce with. */ yyreduce: yylen = yyr2[yyn]; - yyval = yyvsp[1-yylen]; /* implement default value of the action */ + if (yylen > 0) + yyval = yyvsp[1-yylen]; /* implement default value of the action */ #if YYDEBUG != 0 if (yydebug) @@ -460,7 +461,7 @@ yyreduce: #endif $ /* the action file gets copied in in place of this dollarsign */ -#line 464 "bison.simple" +#line 465 "bison.simple" yyvsp -= yylen; yyssp -= yylen; diff --git a/src/bison.simple b/src/bison.simple index d8b16340..49c8b857 100644 --- a/src/bison.simple +++ b/src/bison.simple @@ -442,7 +442,8 @@ yydefault: /* Do a reduction. yyn is the number of a rule to reduce with. */ yyreduce: yylen = yyr2[yyn]; - yyval = yyvsp[1-yylen]; /* implement default value of the action */ + if (yylen > 0) + yyval = yyvsp[1-yylen]; /* implement default value of the action */ #if YYDEBUG != 0 if (yydebug) @@ -460,7 +461,7 @@ yyreduce: #endif $ /* the action file gets copied in in place of this dollarsign */ -#line 464 "bison.simple" +#line 465 "bison.simple" yyvsp -= yylen; yyssp -= yylen;