diff options
author | peter <peter@FreeBSD.org> | 1999-01-10 09:47:00 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-01-10 09:47:00 +0000 |
commit | b66130e248e76492a053cf3cb3fe84f580668361 (patch) | |
tree | 3caf4fc6f883e76264c0a8d3c81387ebbb685ebf /lib/libz/infblock.c | |
parent | 9f86c0bf8cf1224d46bbefe1d308f2cc8186a79b (diff) | |
download | FreeBSD-src-b66130e248e76492a053cf3cb3fe84f580668361.zip FreeBSD-src-b66130e248e76492a053cf3cb3fe84f580668361.tar.gz |
Import zlib 1.1.3 onto the vendor branch.
Obtained from: ftp.cdrom.com:/pub/infozip/zlib
Diffstat (limited to 'lib/libz/infblock.c')
-rw-r--r-- | lib/libz/infblock.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/libz/infblock.c b/lib/libz/infblock.c index 17943ab..f4920fa 100644 --- a/lib/libz/infblock.c +++ b/lib/libz/infblock.c @@ -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) @@ -341,13 +345,6 @@ int r; s->mode = TYPE; break; } - if (k > 7) /* return unused byte, if any */ - { - Assert(k < 16, "inflate_codes grabbed too many bytes") - k -= 8; - n++; - p--; /* can always return one */ - } s->mode = DRY; case DRY: FLUSH |