From 167da6144dc8bcafc1f1476d73b3b6d18541a8a8 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 11 Oct 2017 13:19:34 +0100 Subject: Rename internals of flate filter. This is to avoid conflict with the next commit. --- source/fitz/filter-flate.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source/fitz') diff --git a/source/fitz/filter-flate.c b/source/fitz/filter-flate.c index 6154041b..a7bbb273 100644 --- a/source/fitz/filter-flate.c +++ b/source/fitz/filter-flate.c @@ -4,9 +4,9 @@ #include -typedef struct fz_flate_s fz_flate; +typedef struct fz_inflate_state_s fz_inflate_state; -struct fz_flate_s +struct fz_inflate_state_s { fz_stream *chain; z_stream z; @@ -26,7 +26,7 @@ static void zfree_flate(void *opaque, void *ptr) static int next_flated(fz_context *ctx, fz_stream *stm, size_t required) { - fz_flate *state = stm->state; + fz_inflate_state *state = stm->state; fz_stream *chain = state->chain; z_streamp zp = &state->z; int code; @@ -88,7 +88,7 @@ next_flated(fz_context *ctx, fz_stream *stm, size_t required) static void close_flated(fz_context *ctx, void *state_) { - fz_flate *state = (fz_flate *)state_; + fz_inflate_state *state = (fz_inflate_state *)state_; int code; code = inflateEnd(&state->z); @@ -102,7 +102,7 @@ close_flated(fz_context *ctx, void *state_) fz_stream * fz_open_flated(fz_context *ctx, fz_stream *chain, int window_bits) { - fz_flate *state = NULL; + fz_inflate_state *state = NULL; int code = Z_OK; fz_var(code); @@ -110,7 +110,7 @@ fz_open_flated(fz_context *ctx, fz_stream *chain, int window_bits) fz_try(ctx) { - state = fz_malloc_struct(ctx, fz_flate); + state = fz_malloc_struct(ctx, fz_inflate_state); state->chain = chain; state->z.zalloc = zalloc_flate; -- cgit v1.2.3