summaryrefslogtreecommitdiff
path: root/deflate.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:23:14 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:23:14 -0700
commita2506218cd8c32416d0d15260834f3c23d910fc8 (patch)
tree25bbd63d92473c8ae02a27cce3fc7c04a6aba64a /deflate.c
parentb97ec631c6f7dd9cff2e3caf3b38e70b006e1b2d (diff)
downloadzlib-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.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/deflate.c b/deflate.c
index ddc0c5e..9e90a79 100644
--- a/deflate.c
+++ b/deflate.c
@@ -52,7 +52,7 @@
52#include "deflate.h" 52#include "deflate.h"
53 53
54const char deflate_copyright[] = 54const 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/* ========================================================================= */
394int 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/* ========================================================================= */
394int ZEXPORT deflateParams(strm, level, strategy) 406int ZEXPORT deflateParams(strm, level, strategy)
395 z_streamp strm; 407 z_streamp strm;
396 int level; 408 int level;