diff options
Diffstat (limited to 'src/sbuf.c')
-rw-r--r-- | src/sbuf.c | 31 |
1 files changed, 0 insertions, 31 deletions
@@ -22,37 +22,6 @@ #include "ratpoison.h" #include "sbuf.h" -/* ------------------------------------ move to separate file */ -#include <stdlib.h> -#include <stdio.h> - -void -fatal (const char *msg) -{ - fprintf (stderr, "%s", msg); - abort (); -} - -void * -xmalloc (size_t size) -{ - register void *value = malloc (size); - if (value == 0) - fatal ("virtual memory exhausted"); - return value; -} - -void * -xrealloc (void *ptr, size_t size) -{ - register void *value = realloc (ptr, size); - if (value == 0) - fatal ("Virtual memory exhausted"); - PRINT_DEBUG("realloc: %d\n", size); - return value; -} -/*------------------------------------------------------------*/ - struct sbuf * sbuf_new (size_t initsz) { |