Changeset 886606 in git
- Timestamp:
- May 8, 1998, 5:29:38 PM (25 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- aa3811cefe42b733bb596d3122dbacbc2104727a
- Parents:
- fdf422fadae90bce781bd2fa4e3b5c9fe9dbe69f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/extra.cc
rfdf422f r886606 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: extra.cc,v 1.4 4 1998-05-08 14:17:21 obachmanExp $ */4 /* $Id: extra.cc,v 1.45 1998-05-08 15:29:38 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: general interface to internals of Singular ("system" command) … … 262 262 BOOLEAN mainGetSingOptionValue(const char* name, char** result); 263 263 char* val; 264 264 265 265 if (mainGetSingOptionValue(&((char*)(h->data))[2], &val)) 266 266 { … … 567 567 if (h->next->next->Typ()!=POLY_CMD) 568 568 { 569 569 Warn("Wrong types for poly= comb(ideal,poly)"); 570 570 } 571 571 } … … 588 588 if (h->next->next->Typ()!=POLY_CMD) 589 589 { 590 590 Warn("Wrong types for poly= comb(ideal,poly)"); 591 591 } 592 592 } … … 629 629 /*=======================gcd Testerei ================================*/ 630 630 if ( ! strcmp( (char*)(h->Data()), "setgcd" ) ) { 631 632 633 634 635 631 if ( (h->next != NULL) && (h->next->Typ() == INT_CMD) ) { 632 CFPrimitiveGcdUtil::setAlgorithm( (int)h->next->Data() ); 633 return FALSE; 634 } else 635 WerrorS("int expected"); 636 636 } 637 637 else … … 640 640 #ifdef FACTORY_GCD_TIMING 641 641 if ( ! strcmp( (char*)(h->Data()), "gcdtime" ) ) { 642 643 644 645 646 647 648 649 } 650 else 651 #endif 652 642 TIMING_PRINT( contentTimer, "time used for content: " ); 643 TIMING_PRINT( algContentTimer, "time used for algContent: " ); 644 TIMING_PRINT( algLcmTimer, "time used for algLcm: " ); 645 TIMING_RESET( contentTimer ); 646 TIMING_RESET( algContentTimer ); 647 TIMING_RESET( algLcmTimer ); 648 return FALSE; 649 } 650 else 651 #endif 652 653 653 #ifdef FACTORY_GCD_STAT 654 654 if ( ! strcmp( (char*)(h->Data()), "gcdstat" ) ) { 655 656 657 658 659 655 printGcdTotal(); 656 printContTotal(); 657 resetGcdTotal(); 658 resetContTotal(); 659 return FALSE; 660 660 } 661 661 else … … 687 687 if ((hh!=NULL)&&(IDTYP(hh)==PACKAGE_CMD)) 688 688 { 689 namespaceroot = namespaceroot->push(IDPACKAGE(hh), IDID(hh)); 690 return FALSE; 691 } else 689 namespaceroot = namespaceroot->push(IDPACKAGE(hh), IDID(hh)); 690 return FALSE; 691 } 692 else 692 693 Warn("package `%s` not found",(char*)h->next->Data()); 693 694 } … … 705 706 namehdl nshdl = namespaceroot; 706 707 for( ; nshdl->isroot != TRUE; nshdl = nshdl->next) { 707 708 Print("NSstack: %s:%d\n", nshdl->name, nshdl->lev); 708 709 } 709 710 Print("NSstack: %s:%d\n", nshdl->name, nshdl->lev); … … 726 727 { 727 728 if ((h->next!=NULL) && (h->next->Typ()==STRING_CMD)) { 728 729 729 int iiAddCproc(char *libname, char *procname, BOOLEAN pstatic, 730 BOOLEAN(*func)(leftv res, leftv v)); 730 731 int (*fktn)(int(*iiAddCproc)(char *libname, char *procname, 731 732 732 BOOLEAN pstatic, 733 BOOLEAN(*func)(leftv res, leftv v))); 733 734 void *vp; 734 735 res->rtyp=STRING_CMD;
Note: See TracChangeset
for help on using the changeset viewer.