Thread overview
Paul Nettle's Memory manager ported to DMC
Jul 09, 2004
Anuj Goyal
Jul 09, 2004
Scott Michel
Jul 10, 2004
Anuj Goyal
Jul 10, 2004
Matthew
Jul 11, 2004
Anuj Goyal
July 09, 2004
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/


July 09, 2004
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.
July 10, 2004
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 */


July 10, 2004
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 */
>
>


July 11, 2004
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 */
>>
>>
>
>