From ce176d3637caebac401e634b40abe8bc48505327 Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Mon, 2 Apr 2001 01:00:37 +0000 Subject: Exceptions. --- src/compilo.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'src') diff --git a/src/compilo.c b/src/compilo.c index 6c9e36b..161c70f 100644 --- a/src/compilo.c +++ b/src/compilo.c @@ -8,30 +8,6 @@ #include "hash.h" #include "assembler.h" -char * Estrdup(char * o) { - char * r; - - if (!(r = strdup(o))) { - exception(1, _("Out of memory.")); - } - return r; -} - -void * Emalloc(size_t s) { - void * r; - - if (!(r = malloc(s))) { - exception(1, _("Out of memory.")); - } - return r; -} - -void exception(int level, char *msg) -{ - fprintf(stderr, "%s\n", msg); - exit(level); -} - void invite(void) { fprintf(stderr, _("Assembler\n\n")); } -- cgit v1.2.3