summaryrefslogtreecommitdiff
path: root/fitz/except.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2011-09-14 17:36:57 +0100
committerRobin Watts <Robin.Watts@artifex.com>2011-09-15 14:50:17 +0100
commitb51ef0eea028c73b6379e832eaa34fff3fbbb927 (patch)
tree1ab685ccd356e7fdc832b2e3322c0486b2670cfb /fitz/except.h
parent89ae81f651bfa112b8e07317eb6983beaf7cb212 (diff)
downloadmupdf-b51ef0eea028c73b6379e832eaa34fff3fbbb927.tar.xz
Add context to mupdf.
Huge pervasive change to lots of files, adding a context for exception handling and allocation. In time we'll move more statics into there. Also fix some for(i = 0; i < function(...); i++) calls.
Diffstat (limited to 'fitz/except.h')
-rw-r--r--fitz/except.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/fitz/except.h b/fitz/except.h
index a964b94e..477fbc39 100644
--- a/fitz/except.h
+++ b/fitz/except.h
@@ -3,6 +3,9 @@
#include "fitz.h"
+typedef struct fz_context fz_context;
+typedef int fz_error;
+
typedef struct fz_except {
char mess[256];
} fz_except;
@@ -41,6 +44,8 @@ void fz_rethrow(fz_context *);
void fz_var_xxx(void *x);
-void fz_except_init(fz_context *);
+fz_error fz_except_init(fz_context *);
+
+void fz_except_fin(fz_context *);
#endif /* EXCEPT */