- {
-#if DEBUGGING && __CHECKER__
- error ("xmalloc(%lu): Inducing segfault.", (unsigned long) size);
- *((int *) 0) = 0;
-#endif
- fail ("xmalloc(%lu): %s", (unsigned long) size, VME);
- }
-
- return vp;
-}
-
-/* Resize the block at PTR to size SIZE and return a pointer to the
- beginning of the new block. */
-void *
-xrealloc (void *ptr, size_t size)
-{
- void *vp;
-
- if (!size)
- {
- if (ptr)
- free (ptr);
- return NULL;
- }
-
- if (ptr)
- vp = realloc (ptr, size);
- else
- vp = malloc (size);
-
- if (!vp)
- fail ("xrealloc(%lu): %s", (unsigned long) size, VME);