~ubuntu-branches/ubuntu/wily/zlib/wily

« back to all changes in this revision

Viewing changes to deflate.h

  • Committer: Package Import Robot
  • Author(s): Mark Brown
  • Date: 2012-06-22 16:55:56 UTC
  • mfrom: (1.1.23 sid)
  • Revision ID: package-import@ubuntu.com-20120622165556-9xuc7gnq4w25b3i0
Yet more s390x cleanup.  Thanks to the s390x porters for thei
prompt an efficient buildd monitoring (closes: #678511).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* deflate.h -- internal compression state
2
 
 * Copyright (C) 1995-2009 Jean-loup Gailly
 
2
 * Copyright (C) 1995-2012 Jean-loup Gailly
3
3
 * For conditions of distribution and use, see copyright notice in zlib.h
4
4
 */
5
5
 
48
48
#define MAX_BITS 15
49
49
/* All codes must not exceed MAX_BITS bits */
50
50
 
 
51
#define Buf_size 16
 
52
/* size of bit buffer in bi_buf */
 
53
 
51
54
#define INIT_STATE    42
52
55
#define EXTRA_STATE   69
53
56
#define NAME_STATE    73
188
191
    int nice_match; /* Stop searching when current match exceeds this */
189
192
 
190
193
                /* used by trees.c: */
191
 
    /* Didn't use ct_data typedef below to supress compiler warning */
 
194
    /* Didn't use ct_data typedef below to suppress compiler warning */
192
195
    struct ct_data_s dyn_ltree[HEAP_SIZE];   /* literal and length tree */
193
196
    struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */
194
197
    struct ct_data_s bl_tree[2*BL_CODES+1];  /* Huffman tree for bit lengths */
244
247
    ulg opt_len;        /* bit length of current block with optimal trees */
245
248
    ulg static_len;     /* bit length of current block with static trees */
246
249
    uInt matches;       /* number of string matches in current block */
247
 
    int last_eob_len;   /* bit length of EOB code for last block */
 
250
    uInt insert;        /* bytes at end of window left to insert */
248
251
 
249
252
#ifdef DEBUG
250
253
    ulg compressed_len; /* total bit length of compressed file mod 2^32 */
290
293
   memory checker errors from longest match routines */
291
294
 
292
295
        /* in trees.c */
293
 
void _tr_init         OF((deflate_state *s));
294
 
int  _tr_tally        OF((deflate_state *s, unsigned dist, unsigned lc));
295
 
void _tr_flush_block  OF((deflate_state *s, charf *buf, ulg stored_len,
296
 
                          int eof));
297
 
void _tr_align        OF((deflate_state *s));
298
 
void _tr_stored_block OF((deflate_state *s, charf *buf, ulg stored_len,
299
 
                          int eof));
 
296
void ZLIB_INTERNAL _tr_init OF((deflate_state *s));
 
297
int ZLIB_INTERNAL _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc));
 
298
void ZLIB_INTERNAL _tr_flush_block OF((deflate_state *s, charf *buf,
 
299
                        ulg stored_len, int last));
 
300
void ZLIB_INTERNAL _tr_flush_bits OF((deflate_state *s));
 
301
void ZLIB_INTERNAL _tr_align OF((deflate_state *s));
 
302
void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf,
 
303
                        ulg stored_len, int last));
300
304
 
301
305
#define d_code(dist) \
302
306
   ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)])
309
313
/* Inline versions of _tr_tally for speed: */
310
314
 
311
315
#if defined(GEN_TREES_H) || !defined(STDC)
312
 
  extern uch _length_code[];
313
 
  extern uch _dist_code[];
 
316
  extern uch ZLIB_INTERNAL _length_code[];
 
317
  extern uch ZLIB_INTERNAL _dist_code[];
314
318
#else
315
 
  extern const uch _length_code[];
316
 
  extern const uch _dist_code[];
 
319
  extern const uch ZLIB_INTERNAL _length_code[];
 
320
  extern const uch ZLIB_INTERNAL _dist_code[];
317
321
#endif
318
322
 
319
323
# define _tr_tally_lit(s, c, flush) \