diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:11:37 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:11:37 -0700 |
commit | 56bcb184fac036a45cb8937238d51778d0a796aa (patch) | |
tree | 7b127418b30e135f8ce27ec136038b5090540820 /deflate.h | |
parent | 25e5325501edade156e897f95afdaa2be78ad9a3 (diff) | |
download | zlib-56bcb184fac036a45cb8937238d51778d0a796aa.tar.gz zlib-56bcb184fac036a45cb8937238d51778d0a796aa.tar.bz2 zlib-56bcb184fac036a45cb8937238d51778d0a796aa.zip |
zlib 0.99v0.99
Diffstat (limited to 'deflate.h')
-rw-r--r-- | deflate.h | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* deflate.h -- internal compression state | 1 | /* deflate.h -- internal compression state |
2 | * Copyright (C) 1995 Jean-loup Gailly | 2 | * Copyright (C) 1995-1996 Jean-loup Gailly |
3 | * For conditions of distribution and use, see copyright notice in zlib.h | 3 | * For conditions of distribution and use, see copyright notice in zlib.h |
4 | */ | 4 | */ |
5 | 5 | ||
@@ -10,17 +10,15 @@ | |||
10 | 10 | ||
11 | /* $Id: deflate.h,v 1.5 1995/05/03 17:27:09 jloup Exp $ */ | 11 | /* $Id: deflate.h,v 1.5 1995/05/03 17:27:09 jloup Exp $ */ |
12 | 12 | ||
13 | #ifndef _DEFLATE_H | ||
14 | #define _DEFLATE_H | ||
15 | |||
13 | #include "zutil.h" | 16 | #include "zutil.h" |
14 | 17 | ||
15 | /* =========================================================================== | 18 | /* =========================================================================== |
16 | * Internal compression state. | 19 | * Internal compression state. |
17 | */ | 20 | */ |
18 | 21 | ||
19 | /* Data type */ | ||
20 | #define BINARY 0 | ||
21 | #define ASCII 1 | ||
22 | #define UNKNOWN 2 | ||
23 | |||
24 | #define LENGTH_CODES 29 | 22 | #define LENGTH_CODES 29 |
25 | /* number of length codes, not counting the special END_BLOCK code */ | 23 | /* number of length codes, not counting the special END_BLOCK code */ |
26 | 24 | ||
@@ -87,10 +85,10 @@ typedef struct internal_state { | |||
87 | Bytef *pending_buf; /* output still pending */ | 85 | Bytef *pending_buf; /* output still pending */ |
88 | Bytef *pending_out; /* next pending byte to output to the stream */ | 86 | Bytef *pending_out; /* next pending byte to output to the stream */ |
89 | int pending; /* nb of bytes in the pending buffer */ | 87 | int pending; /* nb of bytes in the pending buffer */ |
90 | uLong adler; /* adler32 of uncompressed data */ | ||
91 | int noheader; /* suppress zlib header and adler32 */ | 88 | int noheader; /* suppress zlib header and adler32 */ |
92 | Byte data_type; /* UNKNOWN, BINARY or ASCII */ | 89 | Byte data_type; /* UNKNOWN, BINARY or ASCII */ |
93 | Byte method; /* STORED (for zip only) or DEFLATED */ | 90 | Byte method; /* STORED (for zip only) or DEFLATED */ |
91 | int last_flush; /* value of flush param for previous deflate call */ | ||
94 | 92 | ||
95 | /* used by deflate.c: */ | 93 | /* used by deflate.c: */ |
96 | 94 | ||
@@ -173,7 +171,7 @@ typedef struct internal_state { | |||
173 | uInt good_match; | 171 | uInt good_match; |
174 | /* Use a faster search when the previous match is longer than this */ | 172 | /* Use a faster search when the previous match is longer than this */ |
175 | 173 | ||
176 | int nice_match; /* Stop searching when current match exceeds this */ | 174 | int nice_match; /* Stop searching when current match exceeds this */ |
177 | 175 | ||
178 | /* used by trees.c: */ | 176 | /* used by trees.c: */ |
179 | /* Didn't use ct_data typedef below to supress compiler warning */ | 177 | /* Didn't use ct_data typedef below to supress compiler warning */ |
@@ -267,9 +265,11 @@ typedef struct internal_state { | |||
267 | */ | 265 | */ |
268 | 266 | ||
269 | /* in trees.c */ | 267 | /* in trees.c */ |
270 | void ct_init OF((deflate_state *s)); | 268 | void _tr_init OF((deflate_state *s)); |
271 | int ct_tally OF((deflate_state *s, int dist, int lc)); | 269 | int _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc)); |
272 | ulg ct_flush_block OF((deflate_state *s, charf *buf, ulg stored_len, int eof)); | 270 | ulg _tr_flush_block OF((deflate_state *s, charf *buf, ulg stored_len, |
273 | void ct_align OF((deflate_state *s)); | 271 | int eof)); |
274 | void ct_stored_block OF((deflate_state *s, charf *buf, ulg stored_len, | 272 | void _tr_align OF((deflate_state *s)); |
273 | void _tr_stored_block OF((deflate_state *s, charf *buf, ulg stored_len, | ||
275 | int eof)); | 274 | int eof)); |
275 | #endif | ||