Changeset 0619c0 in git
- Timestamp:
- Feb 23, 2011, 3:20:59 PM (13 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'fc741b6502fd8a97288eaa3eba6e5220f3c3df87')
- Children:
- 9792cb7510b39a6287b05b3a822cc9432d9b270e
- Parents:
- 115281e7de70454789a548b16283f80186a08578
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/bbcone.cc
r115281 r0619c0 492 492 { 493 493 retCone = zc->linealitySpace(); 494 typeInfo = CONE_CMD;494 typeInfo = coneID; 495 495 } 496 496 else if (strcmp(prop, "DUAL_CONE") == 0) 497 497 { 498 498 retCone = zc->dualCone(); 499 typeInfo = CONE_CMD;499 typeInfo = coneID; 500 500 } 501 501 else if (strcmp(prop, "NEGATED") == 0) 502 502 { 503 503 retCone = zc->negated(); 504 typeInfo = CONE_CMD;504 typeInfo = coneID; 505 505 } 506 506 /* ################ properties with return type intvec: ################## */ … … 536 536 537 537 res->rtyp = typeInfo; 538 switch(typeInfo) 539 { 540 case INTMAT_CMD: 541 res->data = (void*)zMatrix2Intvec(retMat); 542 break; 543 case INT_CMD: 544 res->data = (void*)retInt; 545 break; 546 case CONE_CMD: 547 res->data = (void*)new gfan::ZCone(retCone); 548 break; 549 case INTVEC_CMD: 550 res->data = (void*)zVector2Intvec(retVec); 551 break; 552 default: ; /* should never be reached */ 538 if (typeInfo == INT_CMD) 539 res->data = (void*)retInt; 540 else if (typeInfo == INTMAT_CMD) 541 res->data = (void*)zMatrix2Intvec(retMat); 542 else if (typeInfo == coneID) 543 res->data = (void*)new gfan::ZCone(retCone); 544 else if (typeInfo == INTVEC_CMD) 545 res->data = (void*)zVector2Intvec(retVec); 546 else 547 { 548 WerrorS("implementation error in bbcone.cc::jjGETPROPC"); 549 return TRUE; 553 550 } 554 551 return FALSE;
Note: See TracChangeset
for help on using the changeset viewer.