zlib 1.1.2

This commit is contained in:
Mark Adler
2011-09-09 23:20:15 -07:00
parent 02b6cf579f
commit c34c1fcbb1
39 changed files with 4751 additions and 108 deletions

View File

@@ -11,6 +11,10 @@
struct inflate_codes_state {int dummy;}; /* for buggy compilers */
/* simplify the use of the inflate_huft type with some defines */
#define exop word.what.Exop
#define bits word.what.Bits
/* Table for deflate from PKZIP's appnote.txt. */
local const uInt border[] = { /* Order of the bit length code lengths */
16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15};
@@ -264,8 +268,8 @@ int r;
t = s->sub.trees.bb;
NEEDBITS(t)
h = s->sub.trees.tb + ((uInt)b & inflate_mask[t]);
t = h->word.what.Bits;
c = h->more.Base;
t = h->bits;
c = h->base;
if (c < 16)
{
DUMPBITS(t)