Changeset f92a39 in git for Singular/grammar.cc


Ignore:
Timestamp:
Oct 15, 2012, 7:44:58 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d6b9d791f6efb67f432972147de4dfd0f4081862
Parents:
17874ed75ee295b8f839c9c6087da10a82e6ff2e
Message:
fix: implementation of return(..) improved
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/grammar.cc

    r17874e rf92a39  
    40384038#line 1605 "grammar.y"
    40394039    {
    4040             if(iiRETURNEXPR==NULL) YYERROR;
    4041             iiRETURNEXPR[myynest].Copy(&(yyvsp[(3) - (4)].lv));
     4040            iiRETURNEXPR.Copy(&(yyvsp[(3) - (4)].lv));
    40424041            (yyvsp[(3) - (4)].lv).CleanUp();
    40434042            if (exitBuffer(BT_proc)) YYERROR;
     
    40524051            if ((yyvsp[(1) - (3)].i)==RETURN)
    40534052            {
    4054               if(iiRETURNEXPR==NULL) YYERROR;
    4055               iiRETURNEXPR[myynest].Init();
    4056               iiRETURNEXPR[myynest].rtyp=NONE;
     4053              iiRETURNEXPR.Init();
     4054              iiRETURNEXPR.rtyp=NONE;
    40574055              if (exitBuffer(BT_proc)) YYERROR;
    40584056            }
Note: See TracChangeset for help on using the changeset viewer.