On Thursday, 28 December 2006 at 20:06, Dennis Schridde wrote: > I think not too long ago Per said something like simply replacing MALLOC was > not possible... Dunno if I remember that correctly or how his patch fixed > that...
Just defining MALLOC/FREE to malloc/free etc. (see below) compiles a binary that runs at least the tutorial for a short while (haven't done more testing). So I guess we could just add those defines unconditionally, and if nothing breaks for a while, remove them from the code itself. --- lib/framework/mem.h (revision 579) +++ lib/framework/mem.h (working copy) @@ -78,5 +78,10 @@ #endif // DEBUG_MALLOC +#define MALLOC(size) malloc(size) +#define FREE(ptr) free(ptr) +#define PTRVALID(ptr, size) (TRUE) +#define MEMORYREPORT(file) +#define MEMORYTREAP(file) #endif -- "How do you pronounce SunOS?" "Just like you hear it, with a big SOS" -- dedicated to Roland Kaltefleiter _______________________________________________ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev