Deleted Added
full compact
2c2
< * Copyright (C) 1995-1996 Jean-loup Gailly
---
> * Copyright (C) 1995-1998 Jean-loup Gailly
11c11
< /* $FreeBSD: head/lib/libz/deflate.h 21673 1997-01-14 07:20:47Z jkh $ */
---
> /* $FreeBSD: head/lib/libz/deflate.h 33908 1998-02-28 06:08:17Z steve $ */
85a86
> ulg pending_buf_size; /* size of pending_buf */
274a276,292
>
> #define d_code(dist) \
> ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)])
> /* Mapping from a distance to a distance code. dist is the distance - 1 and
> * must not have side effects. _dist_code[256] and _dist_code[257] are never
> * used.
> */
>
> #ifndef DEBUG
> /* Inline versions of _tr_tally for speed: */
>
> #if defined(GEN_TREES_H) || !defined(STDC)
> extern uch _length_code[];
> extern uch _dist_code[];
> #else
> extern const uch _length_code[];
> extern const uch _dist_code[];
275a294,318
>
> # define _tr_tally_lit(s, c, flush) \
> { uch cc = (c); \
> s->d_buf[s->last_lit] = 0; \
> s->l_buf[s->last_lit++] = cc; \
> s->dyn_ltree[cc].Freq++; \
> flush = (s->last_lit == s->lit_bufsize-1); \
> }
> # define _tr_tally_dist(s, distance, length, flush) \
> { uch len = (length); \
> ush dist = (distance); \
> s->d_buf[s->last_lit] = dist; \
> s->l_buf[s->last_lit++] = len; \
> dist--; \
> s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
> s->dyn_dtree[d_code(dist)].Freq++; \
> flush = (s->last_lit == s->lit_bufsize-1); \
> }
> #else
> # define _tr_tally_lit(s, c, flush) flush = _tr_tally(s, 0, c)
> # define _tr_tally_dist(s, distance, length, flush) \
> flush = _tr_tally(s, distance, length)
> #endif
>
> #endif