Mail Archives: djgpp-workers/2003/03/18/13:51:48.1
Charles Sandmann wrote:
>
... snip ...
> >
> > I would be glad to try something else, if anyone can propose it.
> > Meanwhile note that the _malloc name etc are limited to the files
> > hookmem.h, malldbg.c, and (only when HOOKABLE is defined)
> > nmalloc.c. The three names are easily changed to something else
> > if conflicts arise. They do not propagate onward, except as the
> > linker handles them. Eventually the two .c files can be combined,
> > with the malldbg portion enabled only by HOOKABLE, and the name
> > pollution can disappear.
>
> This must be a run time option, not a compile time option. What's
> the problem with the hooks the library currently uses (adding them
> to the nmalloc code?)
When everything works for the debuggery, that is perfectly
possible as described above. However there is always going to be
namespace pollution, and the only way I see to eliminate it is
with separate modules, one of which has only malloc, free,
realloc, and the other has whatever else is needed. That is why I
chose the separarate sysquery.h header and _sysquery function.
--
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
- Raw text -