summaryrefslogtreecommitdiff
path: root/fitz/filt_faxd.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2009-03-11 22:07:53 +0100
committerTor Andersson <tor@ghostscript.com>2009-03-11 22:07:53 +0100
commit2e04ad6b587c9a34d18819165152ace7657cf443 (patch)
tree61fcaf8afa4509a38fd3deab41ad100ad6939cbe /fitz/filt_faxd.c
parent9f6a77c2d17128a44bf2fc9fead449a05354def5 (diff)
downloadmupdf-2e04ad6b587c9a34d18819165152ace7657cf443.tar.xz
Remove fz_outofmem constant.
Diffstat (limited to 'fitz/filt_faxd.c')
-rw-r--r--fitz/filt_faxd.c12
1 files changed, 6 insertions, 6 deletions
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;