Changeset c7ae4d in git for libpolys/coeffs/numbers.cc
- Timestamp:
- Aug 31, 2016, 12:30:31 AM (8 years ago)
- Branches:
- (u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
- Children:
- e180f5613c396d33aa3316cd450d3a1e80d69129
- Parents:
- 7e2307f3485ab92e550254c1212dafc2940b41ea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/numbers.cc
r7e2307 rc7ae4d 55 55 { 56 56 char *s=(char *)omAlloc(11);snprintf(s,11,"Coeffs(%d)",r->type); 57 return s; 58 } 59 static char* ndCoeffName(const coeffs r) 60 { 61 static char s[20]; 62 snprintf(s,11,"Coeffs(%d)",r->type); 57 63 return s; 58 64 } … … 151 157 static number ndGetNumerator(number &a,const coeffs r) { return r->cfCopy(a,r); } 152 158 static int ndSize(number a, const coeffs r) { return (int)r->cfIsZero(a,r)==FALSE; } 153 static char * ndCoeffName(const coeffs r) { return r->cfCoeffString(r); }154 159 155 160 static void ndClearContent(ICoeffsEnumerator& numberCollectionEnumerator, number& c, const coeffs r) … … 351 356 n->cfAnn = ndAnn; 352 357 n->cfCoeffString = ndCoeffString; // should alway be changed! 358 n->cfCoeffName = ndCoeffName; // should alway be changed! 353 359 n->cfInpMult=ndInpMult; 354 360 n->cfInpAdd=ndInpAdd; … … 362 368 n->cfMPZ = ndMPZ; 363 369 n->cfPower = ndPower; 364 n->cfCoeffName = ndCoeffName;365 370 366 371 n->cfKillChar = ndKillChar; /* dummy */ … … 419 424 assume(n->cfSetChar!=NULL); 420 425 assume(n->cfCoeffString!=ndCoeffString); 426 assume(n->cfCoeffName!=ndCoeffName); 421 427 assume(n->cfMult!=NULL); 422 428 assume(n->cfSub!=NULL);
Note: See TracChangeset
for help on using the changeset viewer.