Changeset 2dbaba4 in git
- Timestamp:
- May 5, 2009, 11:54:38 AM (14 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- def568e9169e67d58842356d8b9718f9a255b706
- Parents:
- 7bd06876c68417663814d23718236d06ed4f91b3
- Location:
- Singular
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/attrib.cc
r7bd068 r2dbaba4 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: attrib.cc,v 1.3 3 2009-03-18 16:35:54Singular Exp $ */4 /* $Id: attrib.cc,v 1.34 2009-05-05 09:54:38 Singular Exp $ */ 5 5 6 6 /* … … 194 194 } 195 195 196 void sattr::kill( )196 void sattr::kill(const ring r) 197 197 { 198 198 omFree((ADDRESS)name); … … 206 206 case MODUL_CMD: 207 207 case MATRIX_CMD: 208 id Delete((ideal *)&data);208 id_Delete((ideal *)&data,r); 209 209 break; 210 210 case POLY_CMD: 211 211 case VECTOR_CMD: 212 p Delete((poly *)&data);212 p_Delete((poly *)&data,r); 213 213 break; 214 214 case INT_CMD: … … 226 226 } 227 227 228 void sattr::killAll( )228 void sattr::killAll(const ring r) 229 229 { 230 230 attr temp = this,temp1; … … 233 233 { 234 234 temp1 = temp->next; 235 temp->kill( );235 temp->kill(r); 236 236 temp = temp1; 237 237 } 238 238 } 239 239 240 void at Kill(idhdl root,const char * name)240 void at_Kill(idhdl root,const char * name, const ring r) 241 241 { 242 242 attr temp = root->attribute->get(name); … … 254 254 temp1->next = N; 255 255 } 256 temp->kill( );257 } 258 } 259 260 void at KillAll(idhdl root)261 { 262 root->attribute->killAll( );256 temp->kill(r); 257 } 258 } 259 260 void at_KillAll(idhdl root, const ring r) 261 { 262 root->attribute->killAll(r); 263 263 root->attribute = NULL; 264 264 } -
Singular/attrib.h
r7bd068 r2dbaba4 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: attrib.h,v 1. 8 2008-03-19 17:44:29Singular Exp $ */6 /* $Id: attrib.h,v 1.9 2009-05-05 09:54:37 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT: attributes to leftv and idhdl … … 28 28 attr set(const char * s, void * data, int t); 29 29 attr get(const char * s); 30 void kill( );31 void killAll( );30 void kill(const ring r); 31 void killAll(const ring r); 32 32 }; 33 33 … … 38 38 void atSet(idhdl root,const char * name,void * data,int typ); 39 39 void atSet(leftv root,const char * name,void * data,int typ); 40 void atKillAll(idhdl root); 41 void atKill(idhdl root,const char * name); 40 void at_KillAll(idhdl root,const ring r); 41 #define atKillAll(H) at_KillAll(H,currRing) 42 void at_Kill(idhdl root,const char * name,const ring r); 43 #define atKill(H,A) at_Kill(H,A,currRing) 42 44 43 45 BOOLEAN atATTRIB1(leftv res,leftv a); -
Singular/ipid.cc
r7bd068 r2dbaba4 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipid.cc,v 1.8 5 2009-05-04 15:06:15Singular Exp $ */4 /* $Id: ipid.cc,v 1.86 2009-05-05 09:54:38 Singular Exp $ */ 5 5 6 6 /* … … 539 539 if (h->attribute!=NULL) 540 540 { 541 at KillAll(h);541 at_KillAll(h,r); 542 542 //h->attribute=NULL; 543 543 } -
Singular/ipshell.cc
r7bd068 r2dbaba4 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipshell.cc,v 1.20 4 2009-05-04 15:06:16Singular Exp $ */4 /* $Id: ipshell.cc,v 1.205 2009-05-05 09:54:37 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 5060 5060 if (traceit &TRACE_SHOW_RINGS) Print("kill ring %lx\n",(long)r); 5061 5061 #endif 5062 if (r==currRing)5063 {5064 if (r->qideal!=NULL)5065 {5066 currQuotient=NULL;5067 }5068 if (ppNoether!=NULL) pDelete(&ppNoether);5069 if (sLastPrinted.RingDependend())5070 {5071 sLastPrinted.CleanUp();5072 }5073 if ((myynest>0) && (iiRETURNEXPR[myynest].RingDependend()))5074 {5075 WerrorS("return value depends on local ring variable (export missing ?)");5076 iiRETURNEXPR[myynest].CleanUp();5077 }5078 currRing=NULL;5079 currRingHdl=NULL;5080 }5081 5062 if (r->qideal!=NULL) 5082 5063 { … … 5117 5098 { 5118 5099 killhdl2(r->idroot,&(r->idroot),r); 5100 } 5101 if (r==currRing) 5102 { 5103 // all dependend stuff is done, clean global vars: 5104 if (r->qideal!=NULL) 5105 { 5106 currQuotient=NULL; 5107 } 5108 if (ppNoether!=NULL) pDelete(&ppNoether); 5109 if (sLastPrinted.RingDependend()) 5110 { 5111 sLastPrinted.CleanUp(); 5112 } 5113 if ((myynest>0) && (iiRETURNEXPR[myynest].RingDependend())) 5114 { 5115 WerrorS("return value depends on local ring variable (export missing ?)"); 5116 iiRETURNEXPR[myynest].CleanUp(); 5117 } 5118 currRing=NULL; 5119 currRingHdl=NULL; 5119 5120 } 5120 5121 -
Singular/subexpr.cc
r7bd068 r2dbaba4 5 5 * ABSTRACT: handling of leftv 6 6 */ 7 /* $Id: subexpr.cc,v 1.10 3 2009-02-20 18:39:21Singular Exp $ */7 /* $Id: subexpr.cc,v 1.104 2009-05-05 09:54:38 Singular Exp $ */ 8 8 9 9 #include <stdlib.h> … … 406 406 { 407 407 t=attribute->next; 408 attribute->kill( );408 attribute->kill(currRing); 409 409 attribute=t; 410 410 }
Note: See TracChangeset
for help on using the changeset viewer.