diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-10-07 23:00:42 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-10-07 23:13:37 -0700 |
commit | 77b47d55f14be032c0ee10da44bbe7591be0abd8 (patch) | |
tree | 7e6532ef42e56abe8a2b29b7821b29f58372d259 /as400 | |
parent | f442c1e89e99ae5a0068a2d32e7284c2623f09fd (diff) | |
download | zlib-77b47d55f14be032c0ee10da44bbe7591be0abd8.tar.gz zlib-77b47d55f14be032c0ee10da44bbe7591be0abd8.tar.bz2 zlib-77b47d55f14be032c0ee10da44bbe7591be0abd8.zip |
Add undocumented inflateResetKeep() function for CAB file decoding.
The Microsoft CAB file format compresses each block with completed
deflate streams that depend on the sliding window history of the
previous block in order to decode. inflateResetKeep() does what
inflateReset() does, except the sliding window history from the
previous inflate operation is retained.
Diffstat (limited to 'as400')
-rw-r--r-- | as400/bndsrc | 1 | ||||
-rw-r--r-- | as400/zlib.inc | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/as400/bndsrc b/as400/bndsrc index dad2bc9..036cd63 100644 --- a/as400/bndsrc +++ b/as400/bndsrc | |||
@@ -180,5 +180,6 @@ STRPGMEXP PGMLVL(*CURRENT) SIGNATURE('ZLIB') | |||
180 | EXPORT SYMBOL("inflatePrime") | 180 | EXPORT SYMBOL("inflatePrime") |
181 | EXPORT SYMBOL("inflateReset2") | 181 | EXPORT SYMBOL("inflateReset2") |
182 | EXPORT SYMBOL("inflateUndermine") | 182 | EXPORT SYMBOL("inflateUndermine") |
183 | EXPORT SYMBOL("inflateResetKeep") | ||
183 | 184 | ||
184 | ENDPGMEXP | 185 | ENDPGMEXP |
diff --git a/as400/zlib.inc b/as400/zlib.inc index 41ff616..976dca2 100644 --- a/as400/zlib.inc +++ b/as400/zlib.inc | |||
@@ -431,6 +431,10 @@ | |||
431 | D strm like(z_stream) Expansion stream | 431 | D strm like(z_stream) Expansion stream |
432 | D arg 10I 0 value Error code | 432 | D arg 10I 0 value Error code |
433 | * | 433 | * |
434 | D inflateResetKeep... | ||
435 | D PR 10I 0 extproc('inflateResetKeep') End and init. stream | ||
436 | D strm like(z_stream) Expansion stream | ||
437 | * | ||
434 | D gzflags PR 10U 0 extproc('gzflags') | 438 | D gzflags PR 10U 0 extproc('gzflags') |
435 | * | 439 | * |
436 | /endif | 440 | /endif |