From 2e04ad6b587c9a34d18819165152ace7657cf443 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 11 Mar 2009 22:07:53 +0100 Subject: Remove fz_outofmem constant. --- fitz/filt_faxd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'fitz/filt_faxd.c') diff --git a/fitz/filt_faxd.c b/fitz/filt_faxd.c index e0f35654..cc083138 100644 --- a/fitz/filt_faxd.c +++ b/fitz/filt_faxd.c @@ -41,7 +41,7 @@ struct fz_faxd_s unsigned char *dst; }; -fz_error +fz_error fz_newfaxd(fz_filter **fp, fz_obj *params) { fz_obj *obj; @@ -95,7 +95,7 @@ fz_newfaxd(fz_filter **fp, fz_obj *params) if (!fax->ref) { fz_free(fax); - return fz_throw("outofmem: scanline buffer one"); + return fz_rethrow(-1, "out of memory: scanline buffer one"); } fax->dst = fz_malloc(fax->stride); @@ -103,7 +103,7 @@ fz_newfaxd(fz_filter **fp, fz_obj *params) { fz_free(fax); fz_free(fax->ref); - return fz_throw("outofmem: scanline buffer two"); + return fz_rethrow(-1, "out of memory: scanline buffer two"); } memset(fax->ref, 0, fax->stride); @@ -161,7 +161,7 @@ getcode(fz_faxd *fax, const cfd_node *table, int initialbits) } /* decode one 1d code */ -static fz_error +static fz_error dec1d(fz_faxd *fax) { int code; @@ -200,7 +200,7 @@ dec1d(fz_faxd *fax) } /* decode one 2d code */ -static fz_error +static fz_error dec2d(fz_faxd *fax) { int code, b1, b2; @@ -318,7 +318,7 @@ dec2d(fz_faxd *fax) return 0; } -fz_error +fz_error fz_processfaxd(fz_filter *f, fz_buffer *in, fz_buffer *out) { fz_faxd *fax = (fz_faxd*)f; -- cgit v1.2.3