Rewrite portable file reader code and incidentally clean up code for
[pspp-builds.git] / src / alloc.c
index 0da8f74490fc6082b6e38755e97c30f4bd4bb128..a0c2fbac5bbf4a79648cb2663f1bcddc99855228 100644 (file)
 
 #include <config.h>
 #include "alloc.h"
-#include "error.h"
 #include <stdio.h>
 #include <stdlib.h>
+#include "error.h"
 #include "str.h"
-
-static void out_of_memory (void);
 \f
 /* Public functions. */
 
@@ -106,11 +104,9 @@ xstrdup (const char *s)
   memcpy (t, s, size);
   return t;
 }
-\f
-/* Private functions. */
 
 /* Report an out-of-memory condition and abort execution. */
-static void
+void
 out_of_memory (void)
 {
   fprintf (stderr, "virtual memory exhausted\n");