aboutsummaryrefslogtreecommitdiff
path: root/deflate.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:26:40 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:26:40 -0700
commitf6194ef39af5864f792412460c354cc339dde7d1 (patch)
tree5ea1e6849128e9b2194c66ee3d82afa36b4ac07c /deflate.h
parent639be997883d9016baaf46017a2802b2ce1698bd (diff)
downloadzlib-f6194ef39af5864f792412460c354cc339dde7d1.tar.gz
zlib-f6194ef39af5864f792412460c354cc339dde7d1.tar.bz2
zlib-f6194ef39af5864f792412460c354cc339dde7d1.zip
zlib 1.2.3.4v1.2.3.4
Diffstat (limited to 'deflate.h')
-rw-r--r--deflate.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/deflate.h b/deflate.h
index 90077d8..f1df04c 100644
--- a/deflate.h
+++ b/deflate.h
@@ -1,5 +1,5 @@
1/* deflate.h -- internal compression state 1/* deflate.h -- internal compression state
2 * Copyright (C) 1995-2005 Jean-loup Gailly 2 * Copyright (C) 1995-2009 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
@@ -260,6 +260,13 @@ typedef struct internal_state {
260 * are always zero. 260 * are always zero.
261 */ 261 */
262 262
263 ulg high_water;
264 /* High water mark offset in window for initialized bytes -- bytes above
265 * this are set to zero in order to avoid memory check warnings when
266 * longest match routines access bytes past the input. This is then
267 * updated to the new high water mark.
268 */
269
263} FAR deflate_state; 270} FAR deflate_state;
264 271
265/* Output a byte on the stream. 272/* Output a byte on the stream.
@@ -278,6 +285,10 @@ typedef struct internal_state {
278 * distances are limited to MAX_DIST instead of WSIZE. 285 * distances are limited to MAX_DIST instead of WSIZE.
279 */ 286 */
280 287
288#define WIN_INIT MAX_MATCH
289/* Number of bytes after end of data in window to initialize in order to avoid
290 memory checker errors from longest match routines */
291
281 /* in trees.c */ 292 /* in trees.c */
282void _tr_init OF((deflate_state *s)); 293void _tr_init OF((deflate_state *s));
283int _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc)); 294int _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc));