Changeset 9a1960 in git
- Timestamp:
- Aug 31, 2016, 3:05:27 PM (7 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 83408ff8113e53cb015596658bf580157b85e9da
- Parents:
- 23ca1f7da923b9cd2662a14a6ae562c743794970
- Location:
- libpolys/coeffs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/modulop.cc
r23ca1f7 r9a1960 468 468 } 469 469 470 static char* npCoeffString(const coeffs r) 471 { 470 static char* npCoeffName(const coeffs cf) 471 { 472 static char npCoeffName_buf[15]; 472 473 #ifdef SINGULAR_4_1 473 char *s=(char*)omAlloc(14); 474 snprintf(s,14,"ZZ/%d",r->ch); 474 snprintf(npCoeffName_buf,14,"ZZ/%d",cf->ch); 475 475 #else 476 char *s=(char*)omAlloc(11); 477 snprintf(s,11,"%d",r->ch); 478 #endif 479 return s; 476 snprintf(npCoeffName_buf,11,"%d",cf->ch); 477 #endif 478 return npCoeffName_buf; 479 } 480 481 static char* npCoeffString(const coeffs cf) 482 { 483 return omStrDup(npCoeffName(cf)); 480 484 } 481 485 … … 518 522 r->nCoeffIsEqual=npCoeffsEqual; 519 523 r->cfCoeffString=npCoeffString; 524 r->cfCoeffName=npCoeffName; 525 r->cfCoeffWrite=npCoeffWrite; 520 526 521 527 r->cfMult = npMult; … … 566 572 } 567 573 #endif 568 r->cfCoeffWrite=npCoeffWrite;569 574 #ifdef LDEBUG 570 575 // debug stuff -
libpolys/coeffs/rintegers.cc
r23ca1f7 r9a1960 256 256 } 257 257 258 number nrzDiv (number a,number b, const coeffs R)258 number nrzDiv (number a,number b, const coeffs) 259 259 { 260 260 mpz_ptr erg = (mpz_ptr) omAllocBin(gmp_nrz_bin); … … 468 468 } 469 469 470 static char* nrzCoeff String(const coeffs)470 static char* nrzCoeffName(const coeffs) 471 471 { 472 472 #ifdef SINGULAR_4_1 473 return omStrDup("ZZ");473 return (char*)"ZZ"; 474 474 #else 475 return omStrDup("integer"); 476 #endif 475 return (char*)"integer"; 476 #endif 477 } 478 479 static char* nrzCoeffString(const coeffs cf) 480 { 481 return omStrDup(nrzCoeffName(cf)); 477 482 } 478 483 … … 500 505 //r->nCoeffIsEqual = ndCoeffIsEqual; 501 506 r->cfCoeffString = nrzCoeffString; 507 r->cfCoeffName = nrzCoeffName; 508 r->cfCoeffWrite = nrzCoeffWrite; 502 509 //r->cfKillChar = ndKillChar; 503 510 r->cfMult = nrzMult; … … 533 540 r->cfDelete= nrzDelete; 534 541 r->cfSetMap = nrzSetMap; 535 r->cfCoeffWrite = nrzCoeffWrite;536 542 r->cfQuot1 = nrzQuot1; 537 543 r->convSingNFactoryN=nrzConvSingNFactoryN;
Note: See TracChangeset
for help on using the changeset viewer.