spielwiese
Last change
on this file since 5480da was
40edb03,
checked in by Olaf Bachmann <obachman@…>, 27 years ago
|
Fri Apr 25 16:59:31 1997 Olaf Bachmann
<obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>
* Various changes to reflect new configure (versions defined in
configure.in, changed HAVE_LIBFACTORY into HAVE_FACTORY, data
dir is pasted from configure into mod2.h and used from therein
feFopen.
* Added configure facility, repalced mod2.h by mod2.h.in Makefile
by Makefile.in
git-svn-id: file:///usr/local/Singular/svn/trunk@189 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.3 1997-04-25 15:03:52 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.