diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2012-01-07 09:54:40 -0800 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2012-01-07 14:03:07 -0800 |
commit | 263b1a05b04e442896d7941f87d022a2f35a9220 (patch) | |
tree | 465a40cf714deb72b89504c1f3f9665db3feafd6 /trees.c | |
parent | 19761b8506f15d6eeeb6ccfab33a11abce0f40e7 (diff) | |
download | zlib-263b1a05b04e442896d7941f87d022a2f35a9220.tar.gz zlib-263b1a05b04e442896d7941f87d022a2f35a9220.tar.bz2 zlib-263b1a05b04e442896d7941f87d022a2f35a9220.zip |
Allow deflatePrime() to insert bits in the middle of a stream.
This allows the insertion of multiple empty static blocks for the
purpose of efficiently bringing a stream to a byte boundary.
Diffstat (limited to 'trees.c')
-rw-r--r-- | trees.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* trees.c -- output deflated data using Huffman coding | 1 | /* trees.c -- output deflated data using Huffman coding |
2 | * Copyright (C) 1995-2010 Jean-loup Gailly | 2 | * Copyright (C) 1995-2012 Jean-loup Gailly |
3 | * detect_data_type() function provided freely by Cosmin Truta, 2006 | 3 | * detect_data_type() function provided freely by Cosmin Truta, 2006 |
4 | * For conditions of distribution and use, see copyright notice in zlib.h | 4 | * For conditions of distribution and use, see copyright notice in zlib.h |
5 | */ | 5 | */ |
@@ -74,11 +74,6 @@ local const uch bl_order[BL_CODES] | |||
74 | * probability, to avoid transmitting the lengths for unused bit length codes. | 74 | * probability, to avoid transmitting the lengths for unused bit length codes. |
75 | */ | 75 | */ |
76 | 76 | ||
77 | #define Buf_size (8 * 2*sizeof(char)) | ||
78 | /* Number of bits used within bi_buf. (bi_buf might be implemented on | ||
79 | * more than 16 bits on some systems.) | ||
80 | */ | ||
81 | |||
82 | /* =========================================================================== | 77 | /* =========================================================================== |
83 | * Local data. These are initialized only once. | 78 | * Local data. These are initialized only once. |
84 | */ | 79 | */ |