summaryrefslogtreecommitdiffhomepage
path: root/ir/common
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-05-27 11:12:28 +0200
committerMatthias Braun <matze@braunis.de>2014-05-28 17:07:13 +0200
commitf1f489762b75ff8ef23c1ef6dc1775bb78e0f2e1 (patch)
tree501b974661108f77281b8830590ba7eaae31cfce /ir/common
parente1fa42e439bd3c67284883917be937017594ad0f (diff)
rename error.h to panic.h
Diffstat (limited to 'ir/common')
-rw-r--r--ir/common/error.h24
-rw-r--r--ir/common/panic.c (renamed from ir/common/error.c)6
-rw-r--r--ir/common/panic.h24
-rw-r--r--ir/common/timing.c2
4 files changed, 28 insertions, 28 deletions
diff --git a/ir/common/error.h b/ir/common/error.h
deleted file mode 100644
index 6a6e5ed..0000000
--- a/ir/common/error.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * This file is part of libFirm.
- * Copyright (C) 2012 University of Karlsruhe.
- */
-
-/**
- * @file
- * @brief Error handling for libFirm
- * @author Michael Beck
- */
-#ifndef FIRM_COMMON_ERROR_H
-#define FIRM_COMMON_ERROR_H
-
-#include "funcattr.h"
-
-/**
- * Prints a panic message to stderr and exits.
- */
-FIRM_NORETURN panic(char const *file, int line, char const *func,
- char const *fmt, ...);
-
-#define panic(...) panic(__FILE__, __LINE__, __func__, __VA_ARGS__)
-
-# endif
diff --git a/ir/common/error.c b/ir/common/panic.c
index a7ddc31..c427b9b 100644
--- a/ir/common/error.c
+++ b/ir/common/panic.c
@@ -12,11 +12,11 @@
#include <stdio.h>
#include <stdarg.h>
-#include "error.h"
#include "irprintf.h"
+#include "panic.h"
-FIRM_NORETURN (panic)(char const *const file, int const line,
- char const *const func, char const *const fmt, ...)
+FIRM_NORETURN print_panic(char const *const file, int const line,
+ char const *const func, char const *const fmt, ...)
{
va_list ap;
diff --git a/ir/common/panic.h b/ir/common/panic.h
new file mode 100644
index 0000000..5c06586
--- /dev/null
+++ b/ir/common/panic.h
@@ -0,0 +1,24 @@
+/*
+ * This file is part of libFirm.
+ * Copyright (C) 2012 University of Karlsruhe.
+ */
+
+/**
+ * @file
+ * @brief Panic routine
+ * @author Michael Beck
+ */
+#ifndef FIRM_COMMON_PANIC_H
+#define FIRM_COMMON_PANIC_H
+
+#include "funcattr.h"
+
+/**
+ * Prints a panic message to stderr and exits.
+ */
+FIRM_NORETURN print_panic(char const *file, int line, char const *func,
+ char const *fmt, ...);
+
+#define panic(...) print_panic(__FILE__, __LINE__, __func__, __VA_ARGS__)
+
+# endif
diff --git a/ir/common/timing.c b/ir/common/timing.c
index a6f0a3f..7ee932b 100644
--- a/ir/common/timing.c
+++ b/ir/common/timing.c
@@ -12,7 +12,7 @@
#include "timing.h"
#include "xmalloc.h"
-#include "error.h"
+#include "panic.h"
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN