diff options
author | Tor Andersson <tor@ghostscript.com> | 2009-03-11 15:59:50 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2009-03-11 15:59:50 +0100 |
commit | 31733cfd3ba1a920542da3792f2591cf7ba5f62a (patch) | |
tree | 64a6751de8e6c171bfaa334188623a7134c285d2 /fitz/obj_array.c | |
parent | b3092ce4920ea6456788a595c5dd9a794f79eed6 (diff) | |
download | mupdf-31733cfd3ba1a920542da3792f2591cf7ba5f62a.tar.xz |
Change fz_error* struct into an integer error type fz_error.
Diffstat (limited to 'fitz/obj_array.c')
-rw-r--r-- | fitz/obj_array.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fitz/obj_array.c b/fitz/obj_array.c index 72a533f3..ce0309eb 100644 --- a/fitz/obj_array.c +++ b/fitz/obj_array.c @@ -3,7 +3,7 @@ void fz_droparray(fz_obj *obj); -fz_error * +fz_error fz_newarray(fz_obj **op, int initialcap) { fz_obj *obj; @@ -32,10 +32,10 @@ fz_newarray(fz_obj **op, int initialcap) return fz_okay; } -fz_error * +fz_error fz_copyarray(fz_obj **op, fz_obj *obj) { - fz_error *error; + fz_error error; fz_obj *new; int i; @@ -61,10 +61,10 @@ fz_copyarray(fz_obj **op, fz_obj *obj) return fz_okay; } -fz_error * +fz_error fz_deepcopyarray(fz_obj **op, fz_obj *obj) { - fz_error *error; + fz_error error; fz_obj *new; fz_obj *val; int i; @@ -155,7 +155,7 @@ fz_arrayget(fz_obj *obj, int i) return obj->u.a.items[i]; } -fz_error * +fz_error fz_arrayput(fz_obj *obj, int i, fz_obj *item) { if (!fz_isarray(obj)) @@ -172,7 +172,7 @@ fz_arrayput(fz_obj *obj, int i, fz_obj *item) return fz_okay; } -static fz_error * +static fz_error growarray(fz_obj *obj) { fz_obj **newitems; @@ -192,10 +192,10 @@ growarray(fz_obj *obj) return fz_okay; } -fz_error * +fz_error fz_arraypush(fz_obj *obj, fz_obj *item) { - fz_error *error; + fz_error error; if (!fz_isarray(obj)) return fz_throw("assert: not an array (%s)", fz_objkindstr(obj)); |