Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:5391] AC_FUNC_MALLOC & REALLOC

Date2004-10-08 19:41
FromBen Collver
Subject[CSOUND-DEV:5391] AC_FUNC_MALLOC & REALLOC
AttachmentsNone  

Date2004-10-11 15:45
Fromramsdell@mitre.org (John D. Ramsdell)
Subject[CSOUND-DEV:5397] Re: AC_FUNC_MALLOC & REALLOC
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

Date2004-10-12 04:22
FromBen Collver
Subject[CSOUND-DEV:5398] Re: AC_FUNC_MALLOC & REALLOC
AttachmentsNone