diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-09-14 17:36:57 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2011-09-15 14:50:17 +0100 |
commit | b51ef0eea028c73b6379e832eaa34fff3fbbb927 (patch) | |
tree | 1ab685ccd356e7fdc832b2e3322c0486b2670cfb /fitz/except.h | |
parent | 89ae81f651bfa112b8e07317eb6983beaf7cb212 (diff) | |
download | mupdf-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.h | 7 |
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 */ |