summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-10-11 13:19:34 +0100
committerRobin Watts <robin.watts@artifex.com>2017-10-13 15:57:25 +0100
commit167da6144dc8bcafc1f1476d73b3b6d18541a8a8 (patch)
tree0d2d4bcda6d3a91fef1fd015b55fb1c93d742868 /source
parent5f044ffe43f770fade1934a6415cac08f82dd83c (diff)
downloadmupdf-167da6144dc8bcafc1f1476d73b3b6d18541a8a8.tar.xz
Rename internals of flate filter.
This is to avoid conflict with the next commit.
Diffstat (limited to 'source')
-rw-r--r--source/fitz/filter-flate.c12
1 files changed, 6 insertions, 6 deletions
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 <string.h>
-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;