Changeset 87cf50 in git
- Timestamp:
- Nov 29, 1999, 3:46:55 PM (24 years ago)
- Branches:
- (u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
- Children:
- 8542c2b8dfa68b83e4a8a7a4be5a4d20e52ff585
- Parents:
- 21959cfde99e2b34993ef4bb1a03e6b58939bf78
- Location:
- Singular
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/extra.cc
r21959c r87cf50 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: extra.cc,v 1.12 1 1999-11-24 18:50:36 obachmanExp $ */4 /* $Id: extra.cc,v 1.122 1999-11-29 14:46:53 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: general interface to internals of Singular ("system" command) … … 326 326 return FALSE; 327 327 } 328 328 329 329 feOptIndex opt = feGetOptIndex(&sys_cmd[2]); 330 330 if (opt == FE_OPT_UNDEF) … … 334 334 return TRUE; 335 335 } 336 337 // for Untyped Options (help version), 336 337 // for Untyped Options (help version), 338 338 // setting it just triggers action 339 339 if (feOptSpec[opt].type == feOptUntyped) … … 342 342 return FALSE; 343 343 } 344 344 345 345 if (h == NULL) 346 346 { … … 360 360 return FALSE; 361 361 } 362 363 if (h->Typ() != STRING_CMD && 362 363 if (h->Typ() != STRING_CMD && 364 364 h->Typ() != INT_CMD) 365 365 { … … 376 376 } 377 377 errormsg = feSetOptValue(opt, (int) h->Data()); 378 if (errormsg != NULL) 378 if (errormsg != NULL) 379 379 Werror("Option '--%s=%d' %s", sys_cmd, (int) h->Data(), errormsg); 380 380 } … … 507 507 else 508 508 { 509 /*==================== semic =============================*/ 510 if(strcmp(sys_cmd,"semic") == 0) 511 { 512 if ((h->next!=NULL) 513 && (h->Typ()==LIST_CMD) 514 && (h->next->Typ()==LIST_CMD)) 515 { 516 if (h->next->next==NULL) 517 return semicProc(res,h,h->next); 518 else if (h->next->next->Typ()==INT_CMD) 519 return semicProc3(res,h,h->next,h->next->next); 520 } 521 return TRUE; 522 } 523 else 524 { 509 525 #endif 510 526 /*================= Extended system call ========================*/ … … 543 559 if (h->Typ()==NUMBER_CMD ) 544 560 { 545 546 547 548 549 550 551 552 553 554 555 556 557 558 } 559 560 561 562 563 564 } 565 else 566 { 567 568 561 if ( h->next!=NULL && h->next->Typ()==INT_CMD ) 562 { 563 if ( !rField_is_long_C() ) 564 { 565 Werror( "unsupported ground field!"); 566 return TRUE; 567 } 568 else 569 { 570 res->rtyp=INT_CMD; 571 res->data=(void*)complexNearZero((gmp_complex*)h->Data(),(int)h->next->Data()); 572 return FALSE; 573 } 574 } 575 else 576 { 577 Werror( "expected <int> as third parameter!"); 578 return TRUE; 579 } 580 } 581 else 582 { 583 Werror( "expected <number> as second parameter!"); 584 return TRUE; 569 585 } 570 586 } … … 574 590 if ( !rField_is_long_C() && !rField_is_long_R() ) 575 591 { 576 577 592 Werror( "unsupported ground field!"); 593 return TRUE; 578 594 } 579 595 res->rtyp=INT_CMD; … … 599 615 { 600 616 #ifdef MLIST 601 FILE *fd = NULL; 617 FILE *fd = NULL; 602 618 if ((h!=NULL) &&(h->Typ()==STRING_CMD)) 603 619 { … … 610 626 return FALSE; 611 627 #else 612 WerrorS("mtrack not supported without MLIST"); 628 WerrorS("mtrack not supported without MLIST"); 613 629 return TRUE; 614 #endif 630 #endif 615 631 } 616 632 else -
Singular/iparith.cc
r21959c r87cf50 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iparith.cc,v 1.19 1 1999-11-24 18:13:21Singular Exp $ */4 /* $Id: iparith.cc,v 1.192 1999-11-29 14:46:54 Singular Exp $ */ 5 5 6 6 /* … … 284 284 { "size", 0, COUNT_CMD , CMD_1}, 285 285 { "sortvec", 0, SORTVEC_CMD , CMD_1}, 286 #ifdef HAVE_SPECTRUM287 { "semic", 0, SEMIC_CMD , CMD_23},288 #endif289 286 #ifdef OLD_RES 290 287 { "sres", 0, SRES_CMD , CMD_23}, … … 2295 2292 ,{jjSIMPL_ID, SIMPLIFY_CMD, IDEAL_CMD, IDEAL_CMD, INT_CMD PROFILER} 2296 2293 ,{jjSIMPL_ID, SIMPLIFY_CMD, MODUL_CMD, MODUL_CMD, INT_CMD PROFILER} 2297 #ifdef HAVE_SPECTRUM2298 ,{semicProc, SEMIC_CMD, INT_CMD, LIST_CMD, LIST_CMD PROFILER}2299 #endif2300 2294 //,{jjRES, SRES_CMD, LIST_CMD, IDEAL_CMD, INT_CMD PROFILER} 2301 2295 //,{jjRES, SRES_CMD, LIST_CMD, MODUL_CMD, INT_CMD PROFILER} … … 4338 4332 ,{jjRING3, RING_CMD, RING_CMD, DEF_CMD, DEF_CMD, DEF_CMD } 4339 4333 #ifdef HAVE_SPECTRUM 4340 ,{semicProc3, SEMIC_CMD, INT_CMD, LIST_CMD, LIST_CMD, INT_CMD }4341 4334 ,{spectrumOp3, SPECTRUM_CMD, LIST_CMD, LIST_CMD, STRING_CMD, INT_CMD } 4342 4335 ,{spectrumOp3, SPECTRUM_CMD, LIST_CMD, LIST_CMD, STRING_CMD, LIST_CMD } -
Singular/tok.h
r21959c r87cf50 7 7 * ABSTRACT: tokens, types for interpreter; general macros 8 8 */ 9 /* $Id: tok.h,v 1.3 2 1999-11-24 18:13:23Singular Exp $ */9 /* $Id: tok.h,v 1.33 1999-11-29 14:46:55 Singular Exp $ */ 10 10 11 11 #ifndef MYYSTYPE … … 106 106 RESULTANT_CMD, 107 107 ROWS_CMD, 108 #ifdef HAVE_SPECTRUM109 SEMIC_CMD,110 #endif111 108 SQR_FREE_DEC_CMD, 112 109 STATUS_CMD,
Note: See TracChangeset
for help on using the changeset viewer.