From: Dale Weiler Date: Sun, 14 Apr 2013 01:14:14 +0000 (+0000) Subject: More function flatening X-Git-Tag: before-library~70 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ccc2eb32988e4ea371308538c2be625fe374846e;p=xonotic%2Fgmqcc.git More function flatening --- diff --git a/ast.c b/ast.c index 38c95a4..919e0a6 100644 --- a/ast.c +++ b/ast.c @@ -42,7 +42,7 @@ static GMQCC_NORETURN void _ast_node_destroy(ast_node *self) { (void)self; con_err("ast node missing destroy()\n"); - abort(); + exit(EXIT_FAILURE); } /* Initialize main ast node aprts */ diff --git a/fs.c b/fs.c index e66e440..6ff0e81 100644 --- a/fs.c +++ b/fs.c @@ -53,7 +53,7 @@ ) { wprintf(L"Invalid parameter dectected %s:%d %s [%s]\n", file, line, function, expression); wprintf(L"Aborting ...\n"); - abort(); + exit(EXIT_FAILURE); } static void file_init() { diff --git a/ir.c b/ir.c index 84455d5..772ad1b 100644 --- a/ir.c +++ b/ir.c @@ -1651,7 +1651,7 @@ void ir_phi_add(ir_instr* self, ir_block *b, ir_value *v) * is doing something wrong. */ irerror(self->context, "Invalid entry block for PHI"); - abort(); + exit(EXIT_FAILURE); } pe.value = v; diff --git a/test.c b/test.c index 631f5e3..2310633 100644 --- a/test.c +++ b/test.c @@ -315,7 +315,7 @@ bool task_template_generate(task_template_t *tmpl, char tag, const char *file, s if (strchr(value, '\n')) *strrchr(value, '\n')='\0'; else /* cppcheck: possible nullpointer dereference */ - abort(); + exit(EXIT_FAILURE); /* * Now allocate and set the actual value for the specific tag. Which @@ -428,7 +428,7 @@ bool task_template_parse(const char *file, task_template_t *tmpl, FILE *fp, size if (strrchr(value, '\n')) *strrchr(value, '\n')='\0'; else /* cppcheck: possible null pointer dereference */ - abort(); + exit(EXIT_FAILURE); vec_push(tmpl->comparematch, util_strdup(value)); diff --git a/util.c b/util.c index 004b69b..023eb5e 100644 --- a/util.c +++ b/util.c @@ -253,7 +253,7 @@ void util_endianswap(void *_data, size_t length, unsigned int typesize) { util_swap64((uint32_t*)_data, length>>3); return; - default: abort(); /* please blow the fuck up! */ + default: exit(EXIT_FAILURE); /* please blow the fuck up! */ } # endif #endif