More function flatening
authorDale Weiler <killfieldengine@gmail.com>
Sun, 14 Apr 2013 01:14:14 +0000 (01:14 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Sun, 14 Apr 2013 01:14:14 +0000 (01:14 +0000)
ast.c
fs.c
ir.c
test.c
util.c

diff --git a/ast.c b/ast.c
index 38c95a4f3dcf3d8b3ff449162a18ecf3439dd5c8..919e0a636e9befadfc3b4400bb56d09853ef831c 100644 (file)
--- 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 e66e440a26da5c23ac6a289b30e26948c96ab646..6ff0e8161efb6169af24268e347507560fd4bae3 100644 (file)
--- 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 84455d56a2d48dc0b72bdd31e44e9a699521dfc7..772ad1b746879858617e14e492ee1ebd1ffcf018 100644 (file)
--- 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 631f5e3fb0b942a2024f1a1ab4d008a453d5fc3a..23106333a225e3bc7068b5ec13d2d841f89dcde4 100644 (file)
--- 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 004b69b0d5daef6215a2e85d16a408607d8ea07c..023eb5e8e52899878993eef0eaac5cbd210c7f69 100644 (file)
--- 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