| Ben Collver writes:
> csound-gbs uses the AC_FUNC_MALLOC autoconf macro.
...
> Since NetBSD's malloc is not compatible with the GNU C library malloc,
> the csound build does
> #define malloc rpl_malloc
...
> What do you think? Should we provide rpl_malloc() and rpl_realloc(), or
> should the AC_FUNC_MALLOC and AC_FUNC_REALLOC macros be removed from
> configure.ac?
I say dump AC_FUNC_MALLOC the AC_FUNC_REALLOC macros in configure.ac.
These macros assure a consistent behavior of malloc across platforms
in that calls do not die when a request is made for zero bytes. Given
that Csound has been compiled for many years on different platforms,
without a GNU Build System, I bet it never invokes malloc with a
request for zero bytes.
John |