From 23c69f10698301ae97709eb0bbfb371d66b99a08 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 9 Sep 2011 23:09:18 -0700 Subject: zlib 0.94 --- infutil.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'infutil.h') diff --git a/infutil.h b/infutil.h index b5639d6..4c8c2d2 100644 --- a/infutil.h +++ b/infutil.h @@ -31,14 +31,14 @@ struct inflate_blocks_state { struct { uInt table; /* table lengths (14 bits) */ uInt index; /* index into blens (or border) */ - uInt *blens; /* bit lengths of codes */ + uIntf *blens; /* bit lengths of codes */ uInt bb; /* bit length tree depth */ inflate_huft *tb; /* bit length decoding tree */ } trees; /* if DTREE, decoding info for trees */ struct { inflate_huft *tl, *td; /* trees to free */ - struct inflate_codes_state - *codes; + inflate_codes_statef + *codes; } decode; /* if CODES, current state */ } sub; /* submode */ uInt last; /* true if this block is the last block */ @@ -46,15 +46,16 @@ struct inflate_blocks_state { /* mode independent information */ uInt bitk; /* bits in bit buffer */ uLong bitb; /* bit buffer */ - Byte *window; /* sliding window */ - Byte *end; /* one byte after sliding window */ - Byte *read; /* window read pointer */ - Byte *write; /* window write pointer */ + Bytef *window; /* sliding window */ + Bytef *end; /* one byte after sliding window */ + Bytef *read; /* window read pointer */ + Bytef *write; /* window write pointer */ check_func checkfn; /* check function */ uLong check; /* check on output */ }; + /* defines for inflate input/output */ /* update pointers and return */ #define UPDBITS {s->bitb=b;s->bitk=k;} @@ -82,8 +83,8 @@ struct inflate_blocks_state { extern uInt inflate_mask[]; /* copy as much as possible from the sliding window to the output area */ -extern int inflate_flush __P(( - struct inflate_blocks_state *, +extern int inflate_flush OF(( + inflate_blocks_statef *, z_stream *, int)); -- cgit v1.2.3-55-g6feb