32 #define LENGTH_CODES 29
38 #define L_CODES (LITERALS+1+LENGTH_CODES)
47 #define HEAP_SIZE (2*L_CODES+1)
54 #define EXTRA_STATE 69
56 #define COMMENT_STATE 91
57 #define HCRC_STATE 103
58 #define BUSY_STATE 113
59 #define FINISH_STATE 666
178 # define max_insert_length max_lazy_match
277 #define put_byte(s, c) {s->pending_buf[s->pending++] = (c);}
280 #define MIN_LOOKAHEAD (MAX_MATCH+MIN_MATCH+1)
285 #define MAX_DIST(s) ((s)->w_size-MIN_LOOKAHEAD)
290 #define WIN_INIT MAX_MATCH
298 ulg stored_len,
int last));
301 ulg stored_len,
int last));
303 #define d_code(dist) \
304 ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)])
313 #if defined(GEN_TREES_H) || !defined(STDC)
321 # define _tr_tally_lit(s, c, flush) \
323 s->d_buf[s->last_lit] = 0; \
324 s->l_buf[s->last_lit++] = cc; \
325 s->dyn_ltree[cc].Freq++; \
326 flush = (s->last_lit == s->lit_bufsize-1); \
328 # define _tr_tally_dist(s, distance, length, flush) \
329 { uch len = (length); \
330 ush dist = (distance); \
331 s->d_buf[s->last_lit] = dist; \
332 s->l_buf[s->last_lit++] = len; \
334 s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
335 s->dyn_dtree[d_code(dist)].Freq++; \
336 flush = (s->last_lit == s->lit_bufsize-1); \
339 # define _tr_tally_lit(s, c, flush) flush = _tr_tally(s, 0, c)
340 # define _tr_tally_dist(s, distance, length, flush) \
341 flush = _tr_tally(s, distance, length)
void ZLIB_INTERNAL _tr_align(deflate_state *s)
struct ct_data_s dyn_ltree[HEAP_SIZE]
static_tree_desc * stat_desc
gz_header FAR * gz_headerp
uch ZLIB_INTERNAL _dist_code[]
void ZLIB_INTERNAL _tr_init OF((deflate_state *s))
struct tree_desc_s bl_desc
struct tree_desc_s d_desc
void ZLIB_INTERNAL _tr_init(deflate_state *s)
#define ABC_NAMESPACE_HEADER_START
NAMESPACES ///.
#define ABC_NAMESPACE_HEADER_END
void ZLIB_INTERNAL _tr_stored_block(deflate_state *s, charf *buf, ulg stored_len, int last)
struct ct_data_s dyn_dtree[2 *D_CODES+1]
struct tree_desc_s l_desc
int ZLIB_INTERNAL _tr_tally(deflate_state *s, unsigned dist, unsigned lc)
struct internal_state deflate_state
uch ZLIB_INTERNAL _length_code[]
void ZLIB_INTERNAL _tr_flush_block(deflate_state *s, charf *buf, ulg stored_len, int last)
struct ct_data_s bl_tree[2 *BL_CODES+1]
struct tree_desc_s tree_desc