Changeset 672783 in git
- Timestamp:
- Jul 28, 2009, 4:59:52 PM (14 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 7b87efd89885ee6835475300c291481f6c035bb7
- Parents:
- a07e45cfc61927c5711cee673474fb891d4574ac
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/tesths.cc
ra07e45 r672783 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: tesths.cc,v 1.11 6 2009-07-28 14:19:05Singular Exp $ */4 /* $Id: tesths.cc,v 1.117 2009-07-28 14:59:52 Singular Exp $ */ 5 5 6 6 /* … … 48 48 #endif 49 49 50 #if (! defined(LIBSINGULAR)) || defined(GENTABLE)50 #if ! defined(LIBSINGULAR) 51 51 /*0 implementation*/ 52 52 int main( /* main entry to Singular */ … … 54 54 char** argv) /* parameter array */ 55 55 { 56 // do not call mp_set_memory_functions in LIBSINGULAR:57 #if defined(OMALLOC_USES_MALLOC) || defined(X_OMALLOC)58 /* in mmstd.c, for some architectures freeSize() unconditionally uses the *system* free() */59 /* sage ticket 5344: http://trac.sagemath.org/sage_trac/ticket/5344 */60 /* solution: correctly check OMALLOC_USES_MALLOC from omalloc.h, */61 /* do not rely on the default in Singular as libsingular may be different */62 mp_set_memory_functions(omMallocFunc,omReallocSizeFunc,omFreeSizeFunc);63 #else64 mp_set_memory_functions(malloc,reallocSize,freeSize);65 #endif66 56 #ifdef HAVE_FACTORY 67 57 On(SW_USE_NTL); … … 143 133 /* say hello */ 144 134 { 135 #ifdef HAVE_NS 145 136 basePack=(package)omAlloc0(sizeof(*basePack)); 146 137 currPack=basePack; … … 151 142 currPackHdl=h; 152 143 basePackHdl=h; 144 #endif /* HAVE_NS */ 153 145 } 154 146 if (BVERBOSE(0)) -
kernel/mminit.cc
ra07e45 r672783 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mminit.cc,v 1. 5 2009-07-28 14:15:05Singular Exp $ */4 /* $Id: mminit.cc,v 1.6 2009-07-28 14:59:30 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: init of memory management … … 38 38 if(mmIsInitialized==0) 39 39 { 40 #if defined(OMALLOC_USES_MALLOC) || defined(X_OMALLOC) 41 /* in mmstd.c, for some architectures freeSize() unconditionally uses the *system* free() */ 42 /* sage ticket 5344: http://trac.sagemath.org/sage_trac/ticket/5344 */ 43 /* solution: correctly check OMALLOC_USES_MALLOC from omalloc.h, */ 44 /* do not rely on the default in Singular as libsingular may be different */ 45 mp_set_memory_functions(omMallocFunc,omReallocSizeFunc,omFreeSizeFunc); 46 #else 47 mp_set_memory_functions(malloc,reallocSize,freeSize); 48 #endif 40 49 om_Opts.OutOfMemoryFunc = omSingOutOfMemoryFunc; 41 50 #ifndef OM_NDEBUG
Note: See TracChangeset
for help on using the changeset viewer.