Changeset 558fb3c in git for Singular/mmalloc.cc
- Timestamp:
- Nov 20, 2000, 11:18:56 AM (23 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 5071cc7ffefd92952d923d91a337cb59c197f1d8
- Parents:
- aceaa4469461028a065a685122fbc8e4c4d0c823
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/mmalloc.cc
raceaa4 r558fb3c 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mmalloc.cc,v 1. 1 2000-08-14 13:11:26 obachmanExp $ */4 /* $Id: mmalloc.cc,v 1.2 2000-11-20 10:18:55 hannes Exp $ */ 5 5 /* 6 * ABSTRACT: standard version of memory management alloc func6 * ABSTRACT: standard version of C++-memory management alloc func 7 7 */ 8 #include <stdlib.h> 8 9 9 10 #include "mod2.h" 10 11 12 #include <omalloc.h> 13 11 14 /* We define those, so that our values of 12 15 OM_TRACK and OM_CHECK are used */ 13 14 extern "C"15 {16 // define this so that all addr allocated there are marked17 // as static, i.e. not metioned by omPrintUsedAddr18 #define OM_MALLOC_MARK_AS_STATIC19 #include <omalloc.c>20 }21 16 22 17 void* operator new ( size_t size ) … … 45 40 omfree( block ); 46 41 } 47 48 49
Note: See TracChangeset
for help on using the changeset viewer.