Changeset bf7dfc in git
- Timestamp:
- Dec 7, 2012, 4:33:00 PM (11 years ago)
- Branches:
- (u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
- Children:
- 98bf9ba410cd86cf36196a85fad65238d81947e9
- Parents:
- ec1006cbd9971c4271d05aefada775ef29d762a6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/newstruct.cc
rec1006 rbf7dfc 202 202 } 203 203 204 void lClean_newstruct(lists l) 205 { 206 if (l->nr>=0) 207 { 208 int i; 209 ring r=NULL; 210 for(i=l->nr;i>=0;i--) 211 { 212 if ((i>0) && (l->m[i-1].rtyp==RING_CMD)) 213 r=(ring)(l->m[i-1].data); 214 else 215 r=NULL; 216 l->m[i].CleanUp(r); 217 } 218 omFreeSize((ADDRESS)l->m, (l->nr+1)*sizeof(sleftv)); 219 l->nr=-1; 220 } 221 omFreeBin((ADDRESS)l,slists_bin); 222 } 223 204 224 BOOLEAN newstruct_Assign(leftv l, leftv r) 205 225 { … … 243 263 { 244 264 lists n1=(lists)l->Data(); 245 n1->Clean(); n1=NULL;265 lClean_newstruct(n1); 246 266 } 247 267 lists n2=(lists)r->Data(); … … 477 497 } 478 498 479 void lClean_newstruct(lists l)480 {481 if (l->nr>=0)482 {483 int i;484 ring r=NULL;485 for(i=l->nr;i>=0;i--)486 {487 if ((i>0) && (l->m[i-1].rtyp==RING_CMD))488 r=(ring)(l->m[i-1].data);489 else490 r=NULL;491 l->m[i].CleanUp(r);492 }493 omFreeSize((ADDRESS)l->m, (l->nr+1)*sizeof(sleftv));494 l->nr=-1;495 }496 omFreeBin((ADDRESS)l,slists_bin);497 }498 499 499 void newstruct_destroy(blackbox *b, void *d) 500 500 { -
libpolys/polys/simpleideals.cc
rec1006 rbf7dfc 18 18 // #include <coeffs/longrat.h> 19 19 #include "matpol.h" 20 20 21 21 #include "monomials/p_polys.h" 22 22 #include "weight.h" … … 121 121 do 122 122 { 123 p_Delete(&((*h)->m[--j]), r); 123 j--; 124 poly pp=((*h)->m[j]); 125 if (pp!=NULL) p_Delete(&pp, r); 124 126 } 125 127 while (j>0); … … 262 264 #else 263 265 if (p_ComparePolys(id->m[i], id->m[j],r)) p_Delete(&id->m[j],r); 264 #endif 266 #endif 265 267 } 266 268 } … … 364 366 #ifdef HAVE_RINGS 365 367 } 366 #endif 368 #endif 367 369 } 368 370 }
Note: See TracChangeset
for help on using the changeset viewer.