diff options
-rw-r--r-- | base/base_memory.c | 4 | ||||
-rw-r--r-- | include/fitz/base_runtime.h | 2 | ||||
-rw-r--r-- | stream/stm_filter.c | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/base/base_memory.c b/base/base_memory.c index 1fa918c2..8c2c0249 100644 --- a/base/base_memory.c +++ b/base/base_memory.c @@ -21,11 +21,11 @@ static fz_memorycontext defmem = { stdmalloc, stdrealloc, stdfree }; static fz_memorycontext *curmem = &defmem; fz_error fz_koutofmem = { - -1, {"out of memory"}, {"<internal>"}, {"<internal>"}, - 0, 0 + 0, + nil }; fz_memorycontext * diff --git a/include/fitz/base_runtime.h b/include/fitz/base_runtime.h index a518bd9b..0bb00292 100644 --- a/include/fitz/base_runtime.h +++ b/include/fitz/base_runtime.h @@ -50,11 +50,11 @@ typedef struct fz_error_s fz_error; struct fz_error_s { - fz_error *cause; char msg[184]; char file[32]; char func[32]; int line; + fz_error *cause; }; #define fz_outofmem (&fz_koutofmem) diff --git a/stream/stm_filter.c b/stream/stm_filter.c index 65b917d5..4260158e 100644 --- a/stream/stm_filter.c +++ b/stream/stm_filter.c @@ -1,9 +1,9 @@ #include "fitz-base.h" #include "fitz-stream.h" -fz_error fz_kioneedin = { -1, "<ioneedin>", "<internal>", "<internal>", 0, 0 }; -fz_error fz_kioneedout = { -1, "<ioneedout>", "<internal>", "<internal>", 0, 0 }; -fz_error fz_kiodone = { -1, "<iodone>", "<internal>", "<internal>", 0, 0 }; +fz_error fz_kioneedin = { "<ioneedin>", "<internal>", "<internal>", 0, nil }; +fz_error fz_kioneedout = { "<ioneedout>", "<internal>", "<internal>", 0, nil }; +fz_error fz_kiodone = { "<iodone>", "<internal>", "<internal>", 0, nil }; fz_error * fz_process(fz_filter *f, fz_buffer *in, fz_buffer *out) |