Changeset e2efbe9 in git
- Timestamp:
- May 4, 2009, 5:06:16 PM (14 years ago)
- Branches:
- (u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
- Children:
- 5684dfa909063f2b118082f73dce26a57ed264e0
- Parents:
- 233f2e504906a97e837a6704ca5f2f22d86c4bb8
- Location:
- Singular
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipassign.cc
r233f2e re2efbe9 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipassign.cc,v 1.10 4 2009-05-01 15:09:32Singular Exp $ */4 /* $Id: ipassign.cc,v 1.105 2009-05-04 15:06:15 Singular Exp $ */ 5 5 6 6 /* … … 550 550 } 551 551 552 ring qr=(ring)res->Data(); // the declaration allocated space 553 omFreeBin((ADDRESS)qr, ip_sring_bin); 554 ring qrr=rCopy(currRing); 552 ring qr; 553 //qr=(ring)res->Data(); 554 //if (qr!=NULL) omFreeBin((ADDRESS)qr, ip_sring_bin); 555 assume(res->Data()==NULL); 556 qr=rCopy(currRing); 555 557 // we have to fill it, but the copy also allocates space 556 558 idhdl h=(idhdl)res->data; // we have res->rtyp==IDHDL 557 IDRING(h)=qrr; 558 qr=qrr; 559 IDRING(h)=qr; 559 560 560 561 #ifdef HAVE_PLURAL … … 578 579 idDelete(&id); 579 580 id=tmp; 580 581 // delete the qr copy of quotient ideal!!! 581 582 idDelete(&qr->qideal); 582 583 } 583 qr r->qideal = id;584 qr->qideal = id; 584 585 585 586 // qr is a copy of currRing with the new qideal! … … 598 599 } 599 600 #endif 600 //currRing=qr;601 //currRingHdl=(idhdl)res->data;602 //currQuotient=qr->qideal;603 601 rSetHdl((idhdl)res->data); 604 602 return FALSE; -
Singular/ipid.cc
r233f2e re2efbe9 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipid.cc,v 1.8 4 2008-04-28 13:54:16Singular Exp $ */4 /* $Id: ipid.cc,v 1.85 2009-05-04 15:06:15 Singular Exp $ */ 5 5 6 6 /* … … 320 320 break; 321 321 case RING_CMD: 322 case QRING_CMD:323 322 IDRING(h) = (ring) omAlloc0Bin(sip_sring_bin); 324 323 break; -
Singular/ipshell.cc
r233f2e re2efbe9 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipshell.cc,v 1.20 3 2009-03-11 09:43:29Singular Exp $ */4 /* $Id: ipshell.cc,v 1.204 2009-05-04 15:06:16 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 340 340 ||(IDTYP(h)==QRING_CMD)) 341 341 { 342 if (IDRING(h)->idroot!=NULL) 342 if ((IDRING(h)!=NULL) && (IDRING(h)->idroot!=NULL)) 343 // we have to test IDRING(h)!=NULL: qring Q=groebner(...): killlocals 343 344 { 344 345 // Print("into ring %s, lev %d for lev %d\n",IDID(h),IDLEV(h),v); … … 4337 4338 // Print(" new ring:%s (l:%d)\n",IDID(h),IDLEV(h)); 4338 4339 rg = IDRING(h); 4340 if (rg==NULL) return; //id <>NULL, ring==NULL 4339 4341 omCheckAddrSize((ADDRESS)h,sizeof(idrec)); 4340 4342 if (IDID(h)) // OB: ????
Note: See TracChangeset
for help on using the changeset viewer.