From fb75fa822d8c8cc89759fe633a36ea5c79bee134 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 4 Jul 1993 20:07:28 +0000 Subject: [PATCH] *** empty log message *** --- bison.simple | 5 +++-- src/bison.s1 | 5 +++-- src/bison.simple | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) 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; -- 2.50.0