diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-04-28 19:16:02 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-04-28 19:16:49 +0100 |
commit | ad13312fc42a236750fbea697a07e4109fae8513 (patch) | |
tree | 8d0b4f37f76b934c89bbfb011872780569f35a2a /include | |
parent | 44fff08dc64d358df441a9e615bbaacf7b01d54a (diff) | |
download | mupdf-ad13312fc42a236750fbea697a07e4109fae8513.tar.xz |
Add FZ_ERROR_OOM, and make fz_malloc & co call it.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/context.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/mupdf/fitz/context.h b/include/mupdf/fitz/context.h index 3b46de34..2908f6b0 100644 --- a/include/mupdf/fitz/context.h +++ b/include/mupdf/fitz/context.h @@ -84,10 +84,11 @@ void fz_rethrow_if(fz_context *ctx, int errcode); enum { FZ_ERROR_NONE = 0, - FZ_ERROR_GENERIC = 1, - FZ_ERROR_SYNTAX = 2, - FZ_ERROR_TRYLATER = 3, - FZ_ERROR_ABORT = 4, + FZ_ERROR_OOM = 1, + FZ_ERROR_GENERIC = 2, + FZ_ERROR_SYNTAX = 3, + FZ_ERROR_TRYLATER = 4, + FZ_ERROR_ABORT = 5, FZ_ERROR_COUNT }; |