diff options
author | Ladislav Zezula <ladislav.zezula@avg.com> | 2013-10-10 08:42:13 +0200 |
---|---|---|
committer | Ladislav Zezula <ladislav.zezula@avg.com> | 2013-10-10 08:42:13 +0200 |
commit | 88b74cc6aff6df067837ded12c30fe59800a8a95 (patch) | |
tree | f5fa89cea35fccccf90304e63fe478f8b317bd01 /src/zlib/deflate.h | |
parent | 24f9faffc938e812ba545d204b9e56052c22ae63 (diff) |
+ Fixed crash when TMPQFile failed to allocate
+ ZLIB updated
Diffstat (limited to 'src/zlib/deflate.h')
-rw-r--r-- | src/zlib/deflate.h | 35 |
1 files changed, 12 insertions, 23 deletions
diff --git a/src/zlib/deflate.h b/src/zlib/deflate.h index cbf0d1e..05a5ab3 100644 --- a/src/zlib/deflate.h +++ b/src/zlib/deflate.h @@ -1,5 +1,5 @@ /* deflate.h -- internal compression state - * Copyright (C) 1995-2010 Jean-loup Gailly + * Copyright (C) 1995-2004 Jean-loup Gailly * For conditions of distribution and use, see copyright notice in zlib.h */ @@ -260,13 +260,6 @@ typedef struct internal_state { * are always zero. */ - ulg high_water; - /* High water mark offset in window for initialized bytes -- bytes above - * this are set to zero in order to avoid memory check warnings when - * longest match routines access bytes past the input. This is then - * updated to the new high water mark. - */ - } FAR deflate_state; /* Output a byte on the stream. @@ -285,18 +278,14 @@ typedef struct internal_state { * distances are limited to MAX_DIST instead of WSIZE. */ -#define WIN_INIT MAX_MATCH -/* Number of bytes after end of data in window to initialize in order to avoid - memory checker errors from longest match routines */ - /* in trees.c */ -void ZLIB_INTERNAL _tr_init OF((deflate_state *s)); -int ZLIB_INTERNAL _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc)); -void ZLIB_INTERNAL _tr_flush_block OF((deflate_state *s, charf *buf, - ulg stored_len, int last)); -void ZLIB_INTERNAL _tr_align OF((deflate_state *s)); -void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf, - ulg stored_len, int last)); +void _tr_init OF((deflate_state *s)); +int _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc)); +void _tr_flush_block OF((deflate_state *s, charf *buf, ulg stored_len, + int eof)); +void _tr_align OF((deflate_state *s)); +void _tr_stored_block OF((deflate_state *s, charf *buf, ulg stored_len, + int eof)); #define d_code(dist) \ ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)]) @@ -309,11 +298,11 @@ void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf, /* Inline versions of _tr_tally for speed: */ #if defined(GEN_TREES_H) || !defined(STDC) - extern uch ZLIB_INTERNAL _length_code[]; - extern uch ZLIB_INTERNAL _dist_code[]; + extern uch _length_code[]; + extern uch _dist_code[]; #else - extern const uch ZLIB_INTERNAL _length_code[]; - extern const uch ZLIB_INTERNAL _dist_code[]; + extern const uch _length_code[]; + extern const uch _dist_code[]; #endif # define _tr_tally_lit(s, c, flush) \ |