Commit f1f48976 authored by Matthias Braun's avatar Matthias Braun
Browse files

rename error.h to panic.h

parent e1fa42e4
...@@ -39,19 +39,19 @@ ...@@ -39,19 +39,19 @@
/** /**
* Allocate @p size bytes on the heap. * Allocate @p size bytes on the heap.
* This is a wrapper for malloc which calls panic() in case of errors, so no * This is a wrapper for malloc which calls panic() in case of errors, so no
* error handling is required for code using it. * panic.handling is required for code using it.
*/ */
FIRM_API void *xmalloc(size_t size); FIRM_API void *xmalloc(size_t size);
/** /**
* Chane size of a previously allocated memory block to @p size bytes. * Chane size of a previously allocated memory block to @p size bytes.
* This is a wrapper for realloc which calls panic() in case of errors, so no * This is a wrapper for realloc which calls panic() in case of errors, so no
* error handling is required for code using it. * panic.handling is required for code using it.
*/ */
FIRM_API void *xrealloc(void *ptr, size_t size); FIRM_API void *xrealloc(void *ptr, size_t size);
/** /**
* Allocates memory and copies string @p str into it. * Allocates memory and copies string @p str into it.
* This is a wrapper for strdup which calls panic() in case of errors, so no * This is a wrapper for strdup which calls panic() in case of errors, so no
* error handling is required for code using it. * panic.handling is required for code using it.
*/ */
FIRM_API char *xstrdup(const char *str); FIRM_API char *xstrdup(const char *str);
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#include "util.h" #include "util.h"
#include "xmalloc.h" #include "xmalloc.h"
#include "debug.h" #include "debug.h"
#include "error.h" #include "panic.h"
#include "hungarian.h" #include "hungarian.h"
#include "raw_bitset.h" #include "raw_bitset.h"
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
*/ */
#include "array.h" #include "array.h"
#include "pqueue.h" #include "pqueue.h"
#include "error.h" #include "panic.h"
/* /*
* Implements a heap. * Implements a heap.
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include "pmap.h" #include "pmap.h"
#include "hashptr.h" #include "hashptr.h"
#include "raw_bitset.h" #include "raw_bitset.h"
#include "error.h" #include "panic.h"
#include "irgwalk.h" #include "irgwalk.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include "pmap.h" #include "pmap.h"
#include "array.h" #include "array.h"
#include "error.h" #include "panic.h"
#include "irdump.h" #include "irdump.h"
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "irtools.h" #include "irtools.h"
#include "array.h" #include "array.h"
#include "debug.h" #include "debug.h"
#include "error.h" #include "panic.h"
#include "irflag.h" #include "irflag.h"
/** /**
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include "irloop_t.h" #include "irloop_t.h"
#include "irprog_t.h" #include "irprog_t.h"
#include "error.h" #include "panic.h"
void add_loop_son(ir_loop *loop, ir_loop *son) void add_loop_son(ir_loop *loop, ir_loop *son)
{ {
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include "irgwalk.h" #include "irgwalk.h"
#include "irprintf.h" #include "irprintf.h"
#include "debug.h" #include "debug.h"
#include "error.h" #include "panic.h"
#include "typerep.h" #include "typerep.h"
#include "type_t.h" #include "type_t.h"
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include "irgraph_t.h" #include "irgraph_t.h"
#include "irprog_t.h" #include "irprog_t.h"
#include "irgwalk.h" #include "irgwalk.h"
#include "error.h" #include "panic.h"
#include "ircons.h" #include "ircons.h"
unsigned get_irn_n_outs(const ir_node *node) unsigned get_irn_n_outs(const ir_node *node)
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
*/ */
#include <limits.h> #include <limits.h>
#include "error.h" #include "panic.h"
#include "xmalloc.h" #include "xmalloc.h"
#include "tv.h" #include "tv.h"
#include "iredges.h" #include "iredges.h"
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include "ircons.h" #include "ircons.h"
#include "iropt_t.h" #include "iropt_t.h"
#include "debug.h" #include "debug.h"
#include "error.h" #include "panic.h"
#include "benode.h" #include "benode.h"
#include "betranshlp.h" #include "betranshlp.h"
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include "lower_calls.h" #include "lower_calls.h"
#include "lower_builtins.h" #include "lower_builtins.h"
#include "debug.h" #include "debug.h"
#include "error.h" #include "panic.h"
#include "be_t.h" #include "be_t.h"
#include "bearch.h" #include "bearch.h"
#include "benode.h" #include "benode.h"
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include "typerep.h" #include "typerep.h"
#include "xmalloc.h" #include "xmalloc.h"
#include "util.h" #include "util.h"
#include "error.h" #include "panic.h"
#include "gen_amd64_regalloc_if.h" #include "gen_amd64_regalloc_if.h"
#include "bitfiddle.h" #include "bitfiddle.h"
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <inttypes.h> #include <inttypes.h>
#include "be_t.h" #include "be_t.h"
#include "error.h" #include "panic.h"
#include "xmalloc.h" #include "xmalloc.h"
#include "tv.h" #include "tv.h"
#include "iredges.h" #include "iredges.h"
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include "benode.h" #include "benode.h"
#include "besched.h" #include "besched.h"
#include "debug.h" #include "debug.h"
#include "error.h" #include "panic.h"
#include "gen_amd64_new_nodes.h" #include "gen_amd64_new_nodes.h"
#include "irgwalk.h" #include "irgwalk.h"
#include "util.h" #include "util.h"
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <inttypes.h> #include <inttypes.h>
#include "error.h" #include "panic.h"
#include "irprog_t.h" #include "irprog_t.h"
#include "irgraph_t.h" #include "irgraph_t.h"
#include "irnode_t.h" #include "irnode_t.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* @brief code selection (transform FIRM into amd64 FIRM) * @brief code selection (transform FIRM into amd64 FIRM)
*/ */
#include "debug.h" #include "debug.h"
#include "error.h" #include "panic.h"
#include "heights.h" #include "heights.h"
#include "ircons.h" #include "ircons.h"
#include "irgmod.h" #include "irgmod.h"
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "bestack.h" #include "bestack.h"
#include "be_t.h" #include "be_t.h"
#include "debug.h" #include "debug.h"
#include "error.h" #include "panic.h"
#include "ircons.h" #include "ircons.h"
#include "irdump.h" #include "irdump.h"
#include "irgmod.h" #include "irgmod.h"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include "irmode.h" #include "irmode.h"
#include "typerep.h" #include "typerep.h"
#include "xmalloc.h" #include "xmalloc.h"
#include "error.h" #include "panic.h"
#include "util.h" #include "util.h"
static const unsigned ignore_regs[] = { static const unsigned ignore_regs[] = {
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "irop_t.h" #include "irop_t.h"
#include "irprog_t.h" #include "irprog_t.h"
#include "irargs_t.h" #include "irargs_t.h"
#include "error.h" #include "panic.h"
#include "dbginfo.h" #include "dbginfo.h"
#include "besched.h" #include "besched.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment