diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1999-01-10 09:47:00 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1999-01-10 09:47:00 +0000 |
| commit | 628b9c34751f3d4523e0a5a92c53a6af1d13d103 (patch) | |
| tree | 3caf4fc6f883e76264c0a8d3c81387ebbb685ebf /lib/libz/infblock.c | |
| parent | bd957a8d6c05c2b26507f0c310c269d02f187632 (diff) | |
Notes
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 17943ab7939b..f4920faa5ea0 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 |
