diff options
author | Pixel <> | 2001-04-02 01:00:37 +0000 |
---|---|---|
committer | Pixel <> | 2001-04-02 01:00:37 +0000 |
commit | ce176d3637caebac401e634b40abe8bc48505327 (patch) | |
tree | 6176a1d949974cb887773177727c2894945b56e8 /src | |
parent | 8212d25ba09a7fdf1938a1992022a0143d29e05b (diff) |
Exceptions.
Diffstat (limited to 'src')
-rw-r--r-- | src/compilo.c | 24 |
1 files changed, 0 insertions, 24 deletions
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")); } |