bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] How do malloc.c and realloc.c get used?


From: Gary V . Vaughan
Subject: [Bug-gnulib] How do malloc.c and realloc.c get used?
Date: Tue, 9 Sep 2003 22:52:37 +0100

Hi,

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])
  fi

xalloc.h:
  #if NEED_RPL_MALLOC
  #  define malloc rpl_malloc
  #endif

Or am I missing something?

Cheers,
        Gary.
--
  ())_. 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__/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]