From ad13312fc42a236750fbea697a07e4109fae8513 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 28 Apr 2016 19:16:02 +0100 Subject: Add FZ_ERROR_OOM, and make fz_malloc & co call it. --- include/mupdf/fitz/context.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'include') 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 }; -- cgit v1.2.3