-/* Allocate N bytes of memory dynamically, with error checking. */
-
-static char *
-xmalloc (n)
- unsigned n;
-{
- char *p;
-
- p = malloc (n);
- if (p == 0)
- {
- fprintf (stderr, "virtual memory exhausted\n");
- exit (1);
- }
- return p;
-}
-
-/* Reallocate space P to size N, with error checking. */
-
-static char *
-xrealloc (p, n)
- char *p;
- unsigned n;
-{
- p = realloc (p, n);
- if (p == 0)
- {
- fprintf (stderr, "virtual memory exhausted\n");
- exit (1);
- }
- return p;
-}
-