diff options
| author | Mark Adler <git@madler.net> | 2026-01-12 09:29:40 -0800 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2026-01-12 10:13:28 -0800 |
| commit | 4edb00de5aac7e4aa9110374bd1991c4d070eddb (patch) | |
| tree | 5a28fee50f6af03c57e0389a85be69b31727b340 /os400 | |
| parent | 1a40058a92d525aa49a6eac698cfde500fc9b92f (diff) | |
| download | zlib-4edb00de5aac7e4aa9110374bd1991c4d070eddb.tar.gz zlib-4edb00de5aac7e4aa9110374bd1991c4d070eddb.tar.bz2 zlib-4edb00de5aac7e4aa9110374bd1991c4d070eddb.zip | |
Add _z versions of the compress and uncompress functions.
Provide size_t arguments for Windows, on which a long is 32 bits.
Diffstat (limited to 'os400')
| -rw-r--r-- | os400/bndsrc | 4 | ||||
| -rw-r--r-- | os400/zlib.inc | 25 |
2 files changed, 29 insertions, 0 deletions
diff --git a/os400/bndsrc b/os400/bndsrc index ce48ff4d..6b0d297a 100644 --- a/os400/bndsrc +++ b/os400/bndsrc | |||
| @@ -136,5 +136,9 @@ STRPGMEXP PGMLVL(*CURRENT) SIGNATURE('ZLIB') | |||
| 136 | 136 | ||
| 137 | EXPORT SYMBOL("compressBound_z") | 137 | EXPORT SYMBOL("compressBound_z") |
| 138 | EXPORT SYMBOL("deflateBound_z") | 138 | EXPORT SYMBOL("deflateBound_z") |
| 139 | EXPORT SYMBOL("compress_z") | ||
| 140 | EXPORT SYMBOL("compress2_z") | ||
| 141 | EXPORT SYMBOL("uncompress_z") | ||
| 142 | EXPORT SYMBOL("uncompress2_z") | ||
| 139 | 143 | ||
| 140 | ENDPGMEXP | 144 | ENDPGMEXP |
diff --git a/os400/zlib.inc b/os400/zlib.inc index 031ff3ec..f884f8f0 100644 --- a/os400/zlib.inc +++ b/os400/zlib.inc | |||
| @@ -124,6 +124,19 @@ | |||
| 124 | D sourceLen 10U 0 value Source length | 124 | D sourceLen 10U 0 value Source length |
| 125 | D level 10I 0 value Compression level | 125 | D level 10I 0 value Compression level |
| 126 | * | 126 | * |
| 127 | D compress_z PR 10I 0 extproc('compress') | ||
| 128 | D dest 65535 options(*varsize) Destination buffer | ||
| 129 | D destLen 20U 0 Destination length | ||
| 130 | D source 65535 const options(*varsize) Source buffer | ||
| 131 | D sourceLen 20u 0 value Source length | ||
| 132 | * | ||
| 133 | D compress2_z PR 10I 0 extproc('compress2') | ||
| 134 | D dest 65535 options(*varsize) Destination buffer | ||
| 135 | D destLen 20U 0 Destination length | ||
| 136 | D source 65535 const options(*varsize) Source buffer | ||
| 137 | D sourceLen 20U 0 value Source length | ||
| 138 | D level 10I 0 value Compression level | ||
| 139 | * | ||
| 127 | D compressBound PR 10U 0 extproc('compressBound') | 140 | D compressBound PR 10U 0 extproc('compressBound') |
| 128 | D sourceLen 10U 0 value | 141 | D sourceLen 10U 0 value |
| 129 | * | 142 | * |
| @@ -142,6 +155,18 @@ | |||
| 142 | D source 65535 const options(*varsize) Source buffer | 155 | D source 65535 const options(*varsize) Source buffer |
| 143 | D sourceLen 10U 0 Source length | 156 | D sourceLen 10U 0 Source length |
| 144 | * | 157 | * |
| 158 | D uncompress_z PR 10I 0 extproc('uncompress') | ||
| 159 | D dest 65535 options(*varsize) Destination buffer | ||
| 160 | D destLen 20U 0 Destination length | ||
| 161 | D source 65535 const options(*varsize) Source buffer | ||
| 162 | D sourceLen 20U 0 value Source length | ||
| 163 | * | ||
| 164 | D uncompress2_z PR 10I 0 extproc('uncompress2') | ||
| 165 | D dest 65535 options(*varsize) Destination buffer | ||
| 166 | D destLen 20U 0 Destination length | ||
| 167 | D source 65535 const options(*varsize) Source buffer | ||
| 168 | D sourceLen 20U 0 Source length | ||
| 169 | * | ||
| 145 | /if not defined(LARGE_FILES) | 170 | /if not defined(LARGE_FILES) |
| 146 | D gzopen PR extproc('gzopen') | 171 | D gzopen PR extproc('gzopen') |
| 147 | D like(gzFile) | 172 | D like(gzFile) |
