[hatari-devel] ide.c memory leak and ifdefs

Thomas Huth huth at users.berlios.de
Tue Jan 26 23:10:35 CET 2010


On Tue, 26 Jan 2010 22:58:13 +0200
Eero Tamminen <eerot at users.berlios.de> wrote:

> > > Is there any reason to even support these unsafe & obsolete
> > > valign() & memalign() functions (one can trivially implement
> > > aligned malloc that works better...)?
> >
> > IIRC the valloc call was the only function that was available
> > everywhere. posix_memalign() was not available on MinGW, memalign()
> > was not available on Mac OS X.
> 
> It falls always to valloc on purpose?

There are proper tests for these functions in the configure.ac file.
It's just missing from config-default.h... well, did I tell you that
it's a big advantage to have one build system for all, and not to have
to do thing twice or three times...?

> With CMake you could check & set the appropriate defines. :-)

Piece of cake. Done.

 Thomas



More information about the hatari-devel mailing list