Changeset 3645fc in git for Singular/tesths.cc
- Timestamp:
- Jun 8, 2011, 6:45:40 PM (13 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- b9a4477dffa95152122f8354bb7633b5a708918e
- Parents:
- ac8e1a6fb7da54fe20dd3b5cb75e2f2cdd68dc06
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/tesths.cc
rac8e1a r3645fc 43 43 #endif 44 44 45 extern int iiInitArithmetic();45 extern int siInit(char *); 46 46 47 47 #if ! defined(LIBSINGULAR) … … 51 51 char** argv) /* parameter array */ 52 52 { 53 #ifdef HAVE_FACTORY54 On(SW_USE_NTL);55 Off(SW_USE_GCD_P);56 On(SW_USE_NTL_GCD_0); // On -> seg11 in Old/algnorm, Old/factor...57 On(SW_USE_NTL_GCD_P); // On -> cyle in Short/brnoeth_s: fixed58 On(SW_USE_EZGCD);59 On(SW_USE_CHINREM_GCD);60 //On(SW_USE_FF_MOD_GCD);61 //On(SW_USE_fieldGCD);62 On(SW_USE_EZGCD_P);63 On(SW_USE_QGCD);64 Off(SW_USE_NTL_SORT); // may be changed by an command line option65 #endif66 67 #ifdef INIT_BUG68 jjInitTab1();69 #endif70 53 // Don't worry: ifdef OM_NDEBUG, then all these calls are undef'ed 71 54 omInitRet_2_Info(argv[0]); 72 55 omInitGetBackTrace(); 73 56 74 /* initialize components */ 75 factoryError=WerrorS; 76 siRandomStart=inits(); 77 feOptSpec[FE_OPT_RANDOM].value = (void*) ((long)siRandomStart); 57 siInit(argv[0]); 58 59 // parse command line options 78 60 int optc, option_index; 79 61 const char* errormsg; 80 81 // do this first, because -v might print version path82 feInitResources(argv[0]);83 iiInitArithmetic();84 85 // parse command line options86 62 while((optc = fe_getopt_long(argc, argv, 87 63 SHORT_OPTS_STRING, feOptSpec, &option_index)) … … 121 97 122 98 /* say hello */ 123 #if 0124 SingularBuilder::Ptr SingularInstance = SingularBuilder::instance();125 #else126 {127 basePack=(package)omAlloc0(sizeof(*basePack));128 currPack=basePack;129 idhdl h;130 h=enterid("Top", 0, PACKAGE_CMD, &IDROOT, TRUE);131 IDPACKAGE(h)->language = LANG_TOP;132 IDPACKAGE(h)=basePack;133 currPackHdl=h;134 basePackHdl=h;135 99 #ifdef HAVE_FANS 136 137 100 bbcone_setup(); 101 bbfan_setup(); 138 102 #endif /* HAVE_FANS */ 139 //for official version: not active 140 //bigintm_setup(); 141 } 142 #endif 103 //for official version: not active 104 //bigintm_setup(); 105 143 106 if (TEST_V_QUIET) 144 107 { … … 168 131 */ 169 132 } 170 slStandardInit();171 myynest=0;172 if (! feOptValue(FE_OPT_NO_STDLIB))173 {174 int vv=verbose;175 verbose &= ~Sy_bit(V_LOAD_LIB);176 iiLibCmd(omStrDup("standard.lib"), TRUE,TRUE,TRUE);177 verbose=vv;178 }179 133 pyobject_setup(); 180 134 errorreported = 0; 181 182 // and again, ifdef OM_NDEBUG this call is undef'ed183 // otherwise, it marks all memory allocated so far as static184 // i.e. as memory which is not mention on omPrintUsedAddr:185 //omMarkMemoryAsStatic();186 135 187 136 setjmp(si_start_jmpbuf);
Note: See TracChangeset
for help on using the changeset viewer.