www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Paul Nettle's Memory manager ported to DMC

↑ ↓ ← Anuj Goyal <Anuj_member pathlink.com> writes:
I ported Paul Nettle's Memory Manager to DMC, this is a very useful bit of code.
There wasn't much I had to do to port it, just look inside mmgr.cpp

http://goanuj.freeshell.org/dmc/
Jul 08 2004
↑ ↓ Scott Michel <scottm aero.org> writes:
Anuj Goyal wrote:
 I ported Paul Nettle's Memory Manager to DMC, this is a very useful bit of
code.
 There wasn't much I had to do to port it, just look inside mmgr.cpp
 
 http://goanuj.freeshell.org/dmc/

Neat variation on a theme, although Gray Watson's dmalloc does a lot more stringent checking and has more debugging features, if the fact that a GNU autoconf-supplied macro that checks for dmalloc isn't enough of an endorsement. A couple of comments: a) DMC does understand <iostream>, if you point your include path at STLport. b) DMC understands "using namespace std;" last time I used it.
Jul 09 2004
↑ ↓ Anuj Goyal <Anuj_member pathlink.com> writes:
made a couple corrections to mmgr.cpp:

#ifdef __DMC__ > 0x832 && defined(_STL)
#include <iostream.h>
#else
#include <iostream>
#endif

/* is STLPort being defined as _STL?  or some other define... I could not find
this documented anywhere */
Jul 09 2004
↑ ↓ "Matthew" <admin stlsoft.dot.dot.dot.dot.org> writes:
Haven't time to help you right now, but if you look in stlsoft_iterator.h you'll
see how it's done.

"Anuj Goyal" <Anuj_member pathlink.com> wrote in message
news:ccnl4m$1h67$1 digitaldaemon.com...
 made a couple corrections to mmgr.cpp:

 #ifdef __DMC__ > 0x832 && defined(_STL)
 #include <iostream.h>
 #else
 #include <iostream>
 #endif

 /* is STLPort being defined as _STL?  or some other define... I could not find
 this documented anywhere */

Jul 10 2004
↑ ↓ → Anuj Goyal <Anuj_member pathlink.com> writes:
ok fixed it.

In article <ccoh47$2rdc$1 digitaldaemon.com>, Matthew says...
Haven't time to help you right now, but if you look in stlsoft_iterator.h you'll
see how it's done.

"Anuj Goyal" <Anuj_member pathlink.com> wrote in message
news:ccnl4m$1h67$1 digitaldaemon.com...
 made a couple corrections to mmgr.cpp:

 #ifdef __DMC__ > 0x832 && defined(_STL)
 #include <iostream.h>
 #else
 #include <iostream>
 #endif

 /* is STLPort being defined as _STL?  or some other define... I could not find
 this documented anywhere */


Jul 11 2004