Changeset a830133 in git
- Timestamp:
- Mar 17, 2009, 10:01:46 AM (14 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- ab89373cf4c7ae3f8b064a46e9e311cde2fb9322
- Parents:
- febf7e79089257c80bba7e793dd2fb03af40b285
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/mminit.cc
rfebf7e ra830133 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mminit.cc,v 1. 1.1.1 2003-10-06 12:15:57Singular Exp $ */4 /* $Id: mminit.cc,v 1.2 2009-03-17 09:01:46 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: init of memory management … … 39 39 { 40 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 */ 41 45 mp_set_memory_functions(omMallocFunc,omReallocSizeFunc,omFreeSizeFunc); 42 46 #else -
kernel/mmstd.c
rfebf7e ra830133 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mmstd.c,v 1. 4 2007-03-21 17:45:27Singular Exp $ */4 /* $Id: mmstd.c,v 1.5 2009-03-17 09:01:46 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: standard version of C-memory management alloc func … … 11 11 12 12 #define OM_NO_MALLOC_MACROS 13 #ifdef ix86_Win14 #define OMALLOC_USES_MALLOC15 #endif16 #ifdef ppcMac_darwin17 #define OMALLOC_USES_MALLOC18 #endif19 #ifdef ix86Mac_darwin20 #define OMALLOC_USES_MALLOC21 #endif22 13 #include "omalloc.h" 23 14 #include "../Singular/static.h" … … 28 19 // already provided in libomalloc 29 20 #if !defined(OMALLOC_USES_MALLOC) && !defined(X_OMALLOC) && !defined(HAVE_STATIC) 21 /* in mmstd.c, for some architectures freeSize() unconditionally uses the *system* free() */ 22 /* sage ticket 5344: http://trac.sagemath.org/sage_trac/ticket/5344 */ 23 /* solution: correctly check OMALLOC_USES_MALLOC from omalloc.h, */ 24 /* do not rely on the default in Singular as libsingular may be different */ 30 25 31 26 // define this so that all addr allocated there are marked
Note: See TracChangeset
for help on using the changeset viewer.