From c8505852fff816f8e319cb7492ff1fee55f33f23 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 17 Apr 2023 12:37:15 +0200 Subject: Added logging and verbosity flag --- src/term.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/term.c') diff --git a/src/term.c b/src/term.c index 7ab1a79..50333c7 100644 --- a/src/term.c +++ b/src/term.c @@ -6,14 +6,13 @@ #include #include +#include struct term *new_term(term_type type) { struct term *term = malloc(sizeof(*term)); - if (!term) { - fprintf(stderr, "Out of memory!\n"); - abort(); - } + if (!term) + fatal("Out of memory!\n"); term->type = type; return term; } -- cgit v1.2.3