/* 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. */
p = calloc (n, s);
if (p == 0)
- p = fixup_null_alloc (n);
+ xalloc_fail ();
return p;
}