Changeset 46feb1 in git
- Timestamp:
- Apr 27, 1998, 6:09:37 PM (25 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 38b2367c696dca8d148e865e1462e98984c9ccab
- Parents:
- 94f4f4606dc2922d461753e53811bf335011bcf5
- Location:
- Singular
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ChangeLog
r94f4f4 r46feb1 1 Mon Apr 27 18:07:21 MET DST 1998 hannes 2 * use ReAlloc for enlargeT, enlargeL (kutil.cc) 1 3 Mon Apr 27 16:45:41 MET DST 1998 hannes 2 4 * fixed conversion of factory 0 to poly NULL (clapconv.cc) -
Singular/kutil.cc
r94f4f4 r46feb1 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.1 8 1998-04-23 09:52:11Singular Exp $ */4 /* $Id: kutil.cc,v 1.19 1998-04-27 16:08:44 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for std … … 205 205 } 206 206 207 void enlargeT (TSet* T,int* length,int incr)207 static inline void enlargeT (TSet* T,int* length,int incr) 208 208 { 209 209 TSet h; 210 210 211 h = (TSet)Alloc(((*length)+incr)* sizeof(TObject)); 212 /*for (i=0; i<=(*length)-1; i++) h[i] = (*T)[i];*/ 213 memcpy(h, *T, (*length) * sizeof(TObject)); 214 Free((ADDRESS)*T,((*length)*sizeof(TObject))); 215 *T = h; 211 *T = (TSet)ReAlloc((ADDRESS)(*T),(*length)*sizeof(TObject), 212 ((*length)+incr)*sizeof(TObject)); 216 213 (*length) += incr; 217 214 } … … 250 247 } 251 248 252 void enlargeL (LSet* L,int* length,int incr)249 static inline void enlargeL (LSet* L,int* length,int incr) 253 250 { 254 251 LSet h; 255 252 256 h = (LSet)Alloc(((*length)+incr)*sizeof(LObject)); 257 /*for (i=0; i<(*length); i++) h[i] = (*L)[i];*/ 258 memcpy(h, *L, (*length) * sizeof(LObject)); 259 Free((ADDRESS)*L,((*length)*sizeof(LObject))); 260 *L = h; 253 *L = (LSet)ReAlloc((ADDRESS)(*L),(*length)*sizeof(LObject), 254 ((*length)+incr)*sizeof(LObject)); 261 255 (*length) += incr; 262 256 } -
Singular/kutil.h
r94f4f4 r46feb1 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: kutil.h,v 1. 8 1998-04-22 07:49:02Singular Exp $ */6 /* $Id: kutil.h,v 1.9 1998-04-27 16:09:37 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT: kernel: utils for std … … 121 121 void deleteHC(poly *p, int *e, int *l, kStrategy strat); 122 122 void deleteInS (int i,kStrategy strat); 123 void enlargeT (TSet* T,int* length,int incr);124 123 void cleanT (kStrategy strat); 125 124 LSet initL (); 126 void enlargeL (LSet* L,int* length,int incr);127 125 void deleteInL(LSet set, int *length, int j,kStrategy strat); 128 126 void enterL (LSet *set,int *length, int *LSetmax, LObject p,int at);
Note: See TracChangeset
for help on using the changeset viewer.