diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:23:14 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:23:14 -0700 |
commit | a2506218cd8c32416d0d15260834f3c23d910fc8 (patch) | |
tree | 25bbd63d92473c8ae02a27cce3fc7c04a6aba64a /deflate.c | |
parent | b97ec631c6f7dd9cff2e3caf3b38e70b006e1b2d (diff) | |
download | zlib-1.2.0.8.tar.gz zlib-1.2.0.8.tar.bz2 zlib-1.2.0.8.zip |
zlib 1.2.0.8v1.2.0.8
Diffstat (limited to 'deflate.c')
-rw-r--r-- | deflate.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -52,7 +52,7 @@ | |||
52 | #include "deflate.h" | 52 | #include "deflate.h" |
53 | 53 | ||
54 | const char deflate_copyright[] = | 54 | const char deflate_copyright[] = |
55 | " deflate 1.2.0.7 Copyright 1995-2003 Jean-loup Gailly "; | 55 | " deflate 1.2.0.8 Copyright 1995-2003 Jean-loup Gailly "; |
56 | /* | 56 | /* |
57 | If you use the zlib library in a product, an acknowledgment is welcome | 57 | If you use the zlib library in a product, an acknowledgment is welcome |
58 | in the documentation of your product. If for some reason you cannot | 58 | in the documentation of your product. If for some reason you cannot |
@@ -391,6 +391,18 @@ int ZEXPORT deflateReset (strm) | |||
391 | } | 391 | } |
392 | 392 | ||
393 | /* ========================================================================= */ | 393 | /* ========================================================================= */ |
394 | int ZEXPORT deflatePrime (strm, bits, value) | ||
395 | z_streamp strm; | ||
396 | int bits; | ||
397 | int value; | ||
398 | { | ||
399 | if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; | ||
400 | strm->state->bi_valid = bits; | ||
401 | strm->state->bi_buf = (ush)(value & ((1 << bits) - 1)); | ||
402 | return Z_OK; | ||
403 | } | ||
404 | |||
405 | /* ========================================================================= */ | ||
394 | int ZEXPORT deflateParams(strm, level, strategy) | 406 | int ZEXPORT deflateParams(strm, level, strategy) |
395 | z_streamp strm; | 407 | z_streamp strm; |
396 | int level; | 408 | int level; |