Changeset 13e2da in git
- Timestamp:
- May 23, 1997, 5:00:03 PM (26 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- f4e7560a91d98a1109351a6fd0f38752bab73b09
- Parents:
- 98d771101d480909901201f82772865c6c6b5046
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipassign.cc
r98d771 r13e2da 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipassign.cc,v 1.1 0 1997-05-02 15:10:14Singular Exp $ */4 /* $Id: ipassign.cc,v 1.11 1997-05-23 15:00:01 Singular Exp $ */ 5 5 6 6 /* … … 740 740 return TRUE; 741 741 } 742 if ((rt==RING_CMD)||(rt==QRING_CMD))743 {744 L->m[i].rtyp=rt;745 L->m[i].data=h->Data();746 ((ring)L->m[i].data)->ref++;747 }748 else742 //if ((rt==RING_CMD)||(rt==QRING_CMD)) 743 //{ 744 // L->m[i].rtyp=rt; 745 // L->m[i].data=h->Data(); 746 // ((ring)L->m[i].data)->ref++; 747 //} 748 //else 749 749 L->m[i].Copy(h); 750 750 } -
Singular/subexpr.cc
r98d771 r13e2da 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: subexpr.cc,v 1.1 7 1997-05-18 11:13:15Singular Exp $ */4 /* $Id: subexpr.cc,v 1.18 1997-05-23 15:00:03 Singular Exp $ */ 5 5 6 6 /* … … 488 488 } 489 489 flag=source->flag; 490 if ( source->attribute!=NULL)491 attribute=source-> attribute->Copy();490 if ((source->attribute!=NULL)||(source->e!=NULL)) 491 attribute=source->CopyA(); 492 492 if (source->next!=NULL) 493 493 { … … 555 555 case LINK_CMD: 556 556 return (void *)slCopy((si_link) d); 557 case RING_CMD: 558 case QRING_CMD: 559 { 560 ring r=(ring)d; 561 r->ref++; 562 return d; 563 } 557 564 case 0: 558 565 case DEF_CMD: 559 566 break; 560 567 #ifdef TEST 561 //case RING_CMD:562 //case QRING_CMD:563 568 //case COMMAND: 564 569 default: … … 583 588 attr sleftv::CopyA() 584 589 { 585 if ((rtyp!=IDHDL)&&(e==NULL)) 586 { 587 attr x=attribute; 588 attribute=NULL; 589 return x; 590 } 591 if (attribute==NULL) 592 return NULL; 593 return attribute->Copy(); 590 attr *a=Attribute(); 591 if (a!=NULL) 592 return (*a)->Copy(); 593 return NULL; 594 594 } 595 595 … … 944 944 { 945 945 if (e==NULL) return &attribute; 946 if (Typ()==LIST_CMD) 946 if ((rtyp==LIST_CMD) 947 ||((rtyp==IDHDL)&&(IDTYP((idhdl)data)==LIST_CMD))) 947 948 { 948 949 leftv v=LData();
Note: See TracChangeset
for help on using the changeset viewer.