fieker-DuValspielwiese
Last change
on this file since 2c694a2 was
416465,
checked in by Olaf Bachmann <obachman@…>, 25 years ago
|
* bug-fixes from work with Thomas
git-svn-id: file:///usr/local/Singular/svn/trunk@3826 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
628 bytes
|
Line | |
---|
1 | // emacs edit mode for this file is -*- C++ -*- |
---|
2 | /**************************************** |
---|
3 | * Computer Algebra System SINGULAR * |
---|
4 | ****************************************/ |
---|
5 | // $Id: clapmem.cc,v 1.4 1999-11-15 17:19:50 obachman Exp $ |
---|
6 | /* |
---|
7 | * ABSTRACT: map new[]/delete[] to Singular memeory management |
---|
8 | */ |
---|
9 | |
---|
10 | |
---|
11 | #include "mod2.h" |
---|
12 | #ifdef HAVE_FACTORY |
---|
13 | #include "mmemory.h" |
---|
14 | |
---|
15 | void * |
---|
16 | operator new[] ( size_t size ) |
---|
17 | { |
---|
18 | #ifdef MDEBUG |
---|
19 | return mmDBAlloc( size, "new[]",0 ); |
---|
20 | #else |
---|
21 | return AllocL( size ); |
---|
22 | #endif |
---|
23 | } |
---|
24 | |
---|
25 | void |
---|
26 | operator delete[] ( void * block ) |
---|
27 | { |
---|
28 | #ifdef MDEBUG |
---|
29 | mmDBFree( block,"delete[]",0 ); |
---|
30 | #else |
---|
31 | FreeL( block ); |
---|
32 | #endif |
---|
33 | } |
---|
34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.