[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] Re: How do malloc.c and realloc.c get used?
From: |
Gary V . Vaughan |
Subject: |
[Bug-gnulib] Re: How do malloc.c and realloc.c get used? |
Date: |
Tue, 9 Sep 2003 22:58:20 +0100 |
Missed a bit...
On Tuesday, September 9, 2003, at 10:52 pm, Gary V. Vaughan wrote:
I'm in the process of porting my adhoc portability files for GNU m4
over to gnulib,
but while adding the xalloc module I noticed something odd: Despite
the fact the modules/xalloc file declares reliance on both malloc.c
and realloc.c, there doesn't appear to be anyway rpl_malloc or
rpl_realloc can be called.
My guess is something like the following is missing?
malloc.m4 (jm_FUNC_MALLOC):
if test X"$ac_cv_func_malloc_0_nonnull" = Xno || test
X"$ac_cv_func_malloc_wo\
rks" = Xno; then
gl_PREREQ_MALLOC
AC_DEFINE(NEED_RPL_MALLOC, 1,
[Define to 1 if system malloc cant handle 0 sized
mallocations])
AC_LIBOBJ([malloc])
fi
xalloc.h:
#if NEED_RPL_MALLOC
# define malloc rpl_malloc
#endif
Or am I missing something?
--
())_. Gary V. Vaughan gary@(oranda.demon.co.uk|gnu.org)
( '/ Research Scientist http://www.oranda.demon.co.uk
,_())____
/ )= GNU Hacker http://www.gnu.org/software/libtool \'
`&
`(_~)_ Tech' Author http://sources.redhat.com/autobook
=`---d__/