Changeset 1bb52a in git
- Timestamp:
- Feb 4, 2020, 4:34:41 PM (4 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 2ff629b24aa32f422e13cf36cce6e31941cc61e3
- Parents:
- a621aa377143a95ae232c9954c821ae2d44cdc3c
- Location:
- Singular
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/grammar.cc
ra621aa r1bb52a 4187 4187 #line 1599 "grammar.y" 4188 4188 { 4189 ii RETURNEXPR.Copy(&(yyvsp[(3) - (4)].lv));4189 iiSetReturn(&(yyvsp[(3) - (4)].lv)); 4190 4190 (yyvsp[(3) - (4)].lv).CleanUp(); 4191 4191 if (exitBuffer(BT_proc)) YYERROR; -
Singular/grammar.y
ra621aa r1bb52a 1598 1598 RETURN '(' exprlist ')' 1599 1599 { 1600 ii RETURNEXPR.Copy(&$3);1600 iiSetReturn(&$3); 1601 1601 $3.CleanUp(); 1602 1602 if (exitBuffer(BT_proc)) YYERROR; -
Singular/ipshell.cc
ra621aa r1bb52a 6604 6604 return TRUE; 6605 6605 } 6606 6607 void iiSetReturn(const leftv source) 6608 { 6609 if ((source->next==NULL)&&(source->e==NULL)) 6610 { 6611 if ((source->rtyp!=IDHDL)&&(source->rtyp!=ALIAS_CMD)) 6612 { 6613 memcpy(&iiRETURNEXPR,source,sizeof(sleftv)); 6614 source->Init(); 6615 return; 6616 } 6617 if (source->rtyp==IDHDL) 6618 { 6619 if ((IDLEV((idhdl)source->data)==myynest) 6620 &&(IDTYP((idhdl)source->data)!=RING_CMD)) 6621 { 6622 memset(&iiRETURNEXPR,0,sizeof(sleftv)); 6623 iiRETURNEXPR.rtyp=IDTYP((idhdl)source->data); 6624 iiRETURNEXPR.data=IDDATA((idhdl)source->data); 6625 iiRETURNEXPR.flag=IDFLAG((idhdl)source->data); 6626 iiRETURNEXPR.attribute=IDATTR((idhdl)source->data); 6627 IDATTR((idhdl)source->data)=NULL; 6628 IDDATA((idhdl)source->data)=NULL; 6629 source->name=NULL; 6630 source->attribute=NULL; 6631 return; 6632 } 6633 } 6634 } 6635 iiRETURNEXPR.Copy(source); 6636 } -
Singular/ipshell.h
ra621aa r1bb52a 300 300 BOOLEAN rDecompose_CF(leftv res,const coeffs C); 301 301 ring rCompose(const lists L, const BOOLEAN check_comp=TRUE, const long bitmask=0x7fff, const int isLetterplace=FALSE); 302 303 void iiSetReturn(const leftv h); 302 304 #endif 303 305
Note: See TracChangeset
for help on using the changeset viewer.