zlib 0.94
This commit is contained in:
19
infutil.h
19
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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user