spielwiese
Last change
on this file since 416465 was
416465,
checked in by Olaf Bachmann <obachman@…>, 24 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
|
Rev | Line | |
---|
[0e1846] | 1 | // emacs edit mode for this file is -*- C++ -*- |
---|
[e2f1c7] | 2 | /**************************************** |
---|
| 3 | * Computer Algebra System SINGULAR * |
---|
| 4 | ****************************************/ |
---|
[416465] | 5 | // $Id: clapmem.cc,v 1.4 1999-11-15 17:19:50 obachman Exp $ |
---|
[e2f1c7] | 6 | /* |
---|
| 7 | * ABSTRACT: map new[]/delete[] to Singular memeory management |
---|
| 8 | */ |
---|
| 9 | |
---|
[0e1846] | 10 | |
---|
| 11 | #include "mod2.h" |
---|
[40edb03] | 12 | #ifdef HAVE_FACTORY |
---|
[0e1846] | 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.