www.digitalmars.com         C & C++   DMDScript  

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

reply 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
parent reply 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
parent reply 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
parent reply "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
parent 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