X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fxmalloc.c;h=204469f240ab7a67a48f92bdbe3e2ed92aafec61;hb=refs%2Ftags%2FFILEUTILS-3_16x;hp=e204ae47faef92c18074c361e34e8e64182a04db;hpb=7b300269f2db82323dd6330c15ed5a449a46a431;p=gnulib.git diff --git a/lib/xmalloc.c b/lib/xmalloc.c index e204ae47f..204469f24 100644 --- a/lib/xmalloc.c +++ b/lib/xmalloc.c @@ -48,12 +48,18 @@ void free (); /* Prototypes for functions defined here. */ #if defined (__STDC__) && __STDC__ -static void *fixup_null_alloc (size_t n); void *xmalloc (size_t n); void *xcalloc (size_t n, size_t s); void *xrealloc (void *p, size_t n); #endif +#ifndef HAVE_DONE_WORKING_MALLOC_CHECK +you must run the autoconf test for a properly working malloc -- see malloc.m4 +#endif + +#ifndef HAVE_DONE_WORKING_REALLOC_CHECK +you must run the autoconf test for a properly working realloc -- see realloc.m4 +#endif /* Exit value when the requested amount of memory is not available. The caller may set it to some other value. */ @@ -120,7 +126,7 @@ xcalloc (n, s) p = calloc (n, s); if (p == 0) - p = fixup_null_alloc (n); + xalloc_fail (); return p; }