summaryrefslogtreecommitdiff
path: root/base/base_error.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2005-08-09 18:16:23 +0200
committerTor Andersson <tor@ghostscript.com>2005-08-09 18:16:23 +0200
commit559ada6a8fe16b5dded7acebffd0d46cd272867f (patch)
tree9c5efffdc03fc32c52911c75ac0f7be260de709b /base/base_error.c
parent4a10060a92a91e7a3897cb7224d204be5e372364 (diff)
downloadmupdf-559ada6a8fe16b5dded7acebffd0d46cd272867f.tar.xz
new unified pdf tool
Diffstat (limited to 'base/base_error.c')
-rw-r--r--base/base_error.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/base/base_error.c b/base/base_error.c
index e9823f14..e0bf1567 100644
--- a/base/base_error.c
+++ b/base/base_error.c
@@ -53,7 +53,12 @@ fz_throw0(const char *func, const char *file, int line, char *fmt, ...)
va_end(ap);
if (getenv("BOMB"))
- fz_abort(eo);
+ {
+ fflush(stdout);
+ fprintf(stderr, "%s:%d: %s(): %s\n", eo->file, eo->line, eo->func, eo->msg);
+ fflush(stderr);
+ abort();
+ }
return eo;
}
@@ -67,12 +72,3 @@ fz_droperror(fz_error *eo)
fz_free(eo);
}
-void
-fz_abort(fz_error *eo)
-{
- fflush(stdout);
- fprintf(stderr, "%s:%d: %s(): %s\n", eo->file, eo->line, eo->func, eo->msg);
- fflush(stderr);
- abort();
-}
-