aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Adler <fork@madler.net>2022-08-22 13:13:06 -0700
committerMark Adler <fork@madler.net>2022-08-23 15:35:13 -0700
commit5752b171fd4cc96b8d1f9526ec1940199c6e9740 (patch)
tree7d8d7e6bf5760cca696b77e72010a497a097061a
parent1eb7682f845ac9e9bf9ae35bbfb3bad5dacbd91d (diff)
downloadzlib-5752b171fd4cc96b8d1f9526ec1940199c6e9740.tar.gz
zlib-5752b171fd4cc96b8d1f9526ec1940199c6e9740.tar.bz2
zlib-5752b171fd4cc96b8d1f9526ec1940199c6e9740.zip
Fix some typos.
No code changes.
-rw-r--r--ChangeLog12
-rw-r--r--contrib/infback9/inftree9.h2
-rw-r--r--contrib/puff/README2
-rw-r--r--contrib/puff/puff.c4
-rw-r--r--contrib/puff/pufftest.c2
-rw-r--r--crc32.c4
-rw-r--r--deflate.c2
-rw-r--r--examples/enough.c2
-rw-r--r--examples/fitblk.c4
-rw-r--r--examples/gun.c2
-rw-r--r--examples/gzappend.c4
-rw-r--r--examples/gzlog.h2
-rw-r--r--examples/zran.c2
-rw-r--r--inftrees.h2
-rw-r--r--make_vms.com4
-rw-r--r--os400/README4004
-rw-r--r--trees.c2
-rw-r--r--zlib.h10
-rwxr-xr-xzlib2ansi4
19 files changed, 35 insertions, 35 deletions
diff --git a/ChangeLog b/ChangeLog
index 287b41e..c1e9c97 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -162,7 +162,7 @@ Changes in 1.2.7.1 (24 Mar 2013)
162- Fix types in contrib/minizip to match result of get_crc_table() 162- Fix types in contrib/minizip to match result of get_crc_table()
163- Simplify contrib/vstudio/vc10 with 'd' suffix 163- Simplify contrib/vstudio/vc10 with 'd' suffix
164- Add TOP support to win32/Makefile.msc 164- Add TOP support to win32/Makefile.msc
165- Suport i686 and amd64 assembler builds in CMakeLists.txt 165- Support i686 and amd64 assembler builds in CMakeLists.txt
166- Fix typos in the use of _LARGEFILE64_SOURCE in zconf.h 166- Fix typos in the use of _LARGEFILE64_SOURCE in zconf.h
167- Add vc11 and vc12 build files to contrib/vstudio 167- Add vc11 and vc12 build files to contrib/vstudio
168- Add gzvprintf() as an undocumented function in zlib 168- Add gzvprintf() as an undocumented function in zlib
@@ -362,14 +362,14 @@ Changes in 1.2.5.1 (10 Sep 2011)
362- Use u4 type for crc_table to avoid conversion warnings 362- Use u4 type for crc_table to avoid conversion warnings
363- Apply casts in zlib.h to avoid conversion warnings 363- Apply casts in zlib.h to avoid conversion warnings
364- Add OF to prototypes for adler32_combine_ and crc32_combine_ [Miller] 364- Add OF to prototypes for adler32_combine_ and crc32_combine_ [Miller]
365- Improve inflateSync() documentation to note indeterminancy 365- Improve inflateSync() documentation to note indeterminacy
366- Add deflatePending() function to return the amount of pending output 366- Add deflatePending() function to return the amount of pending output
367- Correct the spelling of "specification" in FAQ [Randers-Pehrson] 367- Correct the spelling of "specification" in FAQ [Randers-Pehrson]
368- Add a check in configure for stdarg.h, use for gzprintf() 368- Add a check in configure for stdarg.h, use for gzprintf()
369- Check that pointers fit in ints when gzprint() compiled old style 369- Check that pointers fit in ints when gzprint() compiled old style
370- Add dummy name before $(SHAREDLIBV) in Makefile [Bar-Lev, Bowler] 370- Add dummy name before $(SHAREDLIBV) in Makefile [Bar-Lev, Bowler]
371- Delete line in configure that adds -L. libz.a to LDFLAGS [Weigelt] 371- Delete line in configure that adds -L. libz.a to LDFLAGS [Weigelt]
372- Add debug records in assmebler code [Londer] 372- Add debug records in assembler code [Londer]
373- Update RFC references to use http://tools.ietf.org/html/... [Li] 373- Update RFC references to use http://tools.ietf.org/html/... [Li]
374- Add --archs option, use of libtool to configure for Mac OS X [Borstel] 374- Add --archs option, use of libtool to configure for Mac OS X [Borstel]
375 375
@@ -1036,7 +1036,7 @@ Changes in 1.2.0.1 (17 March 2003)
1036 - Include additional header file on VMS for off_t typedef 1036 - Include additional header file on VMS for off_t typedef
1037- Try to use _vsnprintf where it supplants vsprintf [Vollant] 1037- Try to use _vsnprintf where it supplants vsprintf [Vollant]
1038- Add some casts in inffast.c 1038- Add some casts in inffast.c
1039- Enchance comments in zlib.h on what happens if gzprintf() tries to 1039- Enhance comments in zlib.h on what happens if gzprintf() tries to
1040 write more than 4095 bytes before compression 1040 write more than 4095 bytes before compression
1041- Remove unused state from inflateBackEnd() 1041- Remove unused state from inflateBackEnd()
1042- Remove exit(0) from minigzip.c, example.c 1042- Remove exit(0) from minigzip.c, example.c
@@ -1214,7 +1214,7 @@ Changes in 1.0.9 (17 Feb 1998)
1214- Avoid gcc 2.8.0 comparison bug a little differently than zlib 1.0.8 1214- Avoid gcc 2.8.0 comparison bug a little differently than zlib 1.0.8
1215- in inftrees.c, avoid cc -O bug on HP (Farshid Elahi) 1215- in inftrees.c, avoid cc -O bug on HP (Farshid Elahi)
1216- in zconf.h move the ZLIB_DLL stuff earlier to avoid problems with 1216- in zconf.h move the ZLIB_DLL stuff earlier to avoid problems with
1217 the declaration of FAR (Gilles VOllant) 1217 the declaration of FAR (Gilles Vollant)
1218- install libz.so* with mode 755 (executable) instead of 644 (Marc Lehmann) 1218- install libz.so* with mode 755 (executable) instead of 644 (Marc Lehmann)
1219- read_buf buf parameter of type Bytef* instead of charf* 1219- read_buf buf parameter of type Bytef* instead of charf*
1220- zmemcpy parameters are of type Bytef*, not charf* (Joseph Strout) 1220- zmemcpy parameters are of type Bytef*, not charf* (Joseph Strout)
@@ -1570,7 +1570,7 @@ Changes in 0.4:
1570- renamed deflateOptions as deflateInit2, call one or the other but not both 1570- renamed deflateOptions as deflateInit2, call one or the other but not both
1571- added the method parameter for deflateInit2 1571- added the method parameter for deflateInit2
1572- added inflateInit2 1572- added inflateInit2
1573- simplied considerably deflateInit and inflateInit by not supporting 1573- simplified considerably deflateInit and inflateInit by not supporting
1574 user-provided history buffer. This is supported only in deflateInit2 1574 user-provided history buffer. This is supported only in deflateInit2
1575 and inflateInit2 1575 and inflateInit2
1576 1576
diff --git a/contrib/infback9/inftree9.h b/contrib/infback9/inftree9.h
index 5ab21f0..3b39497 100644
--- a/contrib/infback9/inftree9.h
+++ b/contrib/infback9/inftree9.h
@@ -38,7 +38,7 @@ typedef struct {
38/* Maximum size of the dynamic table. The maximum number of code structures is 38/* Maximum size of the dynamic table. The maximum number of code structures is
39 1446, which is the sum of 852 for literal/length codes and 594 for distance 39 1446, which is the sum of 852 for literal/length codes and 594 for distance
40 codes. These values were found by exhaustive searches using the program 40 codes. These values were found by exhaustive searches using the program
41 examples/enough.c found in the zlib distribtution. The arguments to that 41 examples/enough.c found in the zlib distribution. The arguments to that
42 program are the number of symbols, the initial root table size, and the 42 program are the number of symbols, the initial root table size, and the
43 maximum bit length of a code. "enough 286 9 15" for literal/length codes 43 maximum bit length of a code. "enough 286 9 15" for literal/length codes
44 returns returns 852, and "enough 32 6 15" for distance codes returns 594. 44 returns returns 852, and "enough 32 6 15" for distance codes returns 594.
diff --git a/contrib/puff/README b/contrib/puff/README
index bbc4cb5..d8192c7 100644
--- a/contrib/puff/README
+++ b/contrib/puff/README
@@ -38,7 +38,7 @@ Then you can call puff() to decompress a deflate stream that is in memory in
38its entirety at source, to a sufficiently sized block of memory for the 38its entirety at source, to a sufficiently sized block of memory for the
39decompressed data at dest. puff() is the only external symbol in puff.c The 39decompressed data at dest. puff() is the only external symbol in puff.c The
40only C library functions that puff.c needs are setjmp() and longjmp(), which 40only C library functions that puff.c needs are setjmp() and longjmp(), which
41are used to simplify error checking in the code to improve readabilty. puff.c 41are used to simplify error checking in the code to improve readability. puff.c
42does no memory allocation, and uses less than 2K bytes off of the stack. 42does no memory allocation, and uses less than 2K bytes off of the stack.
43 43
44If destlen is not enough space for the uncompressed data, then inflate will 44If destlen is not enough space for the uncompressed data, then inflate will
diff --git a/contrib/puff/puff.c b/contrib/puff/puff.c
index c6c90d7..6737ff6 100644
--- a/contrib/puff/puff.c
+++ b/contrib/puff/puff.c
@@ -43,7 +43,7 @@
43 * - Use pointers instead of long to specify source and 43 * - Use pointers instead of long to specify source and
44 * destination sizes to avoid arbitrary 4 GB limits 44 * destination sizes to avoid arbitrary 4 GB limits
45 * 1.2 17 Mar 2002 - Add faster version of decode(), doubles speed (!), 45 * 1.2 17 Mar 2002 - Add faster version of decode(), doubles speed (!),
46 * but leave simple version for readabilty 46 * but leave simple version for readability
47 * - Make sure invalid distances detected if pointers 47 * - Make sure invalid distances detected if pointers
48 * are 16 bits 48 * are 16 bits
49 * - Fix fixed codes table error 49 * - Fix fixed codes table error
@@ -624,7 +624,7 @@ local int fixed(struct state *s)
624 * are themselves compressed using Huffman codes and run-length encoding. In 624 * are themselves compressed using Huffman codes and run-length encoding. In
625 * the list of code lengths, a 0 symbol means no code, a 1..15 symbol means 625 * the list of code lengths, a 0 symbol means no code, a 1..15 symbol means
626 * that length, and the symbols 16, 17, and 18 are run-length instructions. 626 * that length, and the symbols 16, 17, and 18 are run-length instructions.
627 * Each of 16, 17, and 18 are follwed by extra bits to define the length of 627 * Each of 16, 17, and 18 are followed by extra bits to define the length of
628 * the run. 16 copies the last length 3 to 6 times. 17 represents 3 to 10 628 * the run. 16 copies the last length 3 to 6 times. 17 represents 3 to 10
629 * zero lengths, and 18 represents 11 to 138 zero lengths. Unused symbols 629 * zero lengths, and 18 represents 11 to 138 zero lengths. Unused symbols
630 * are common, hence the special coding for zero lengths. 630 * are common, hence the special coding for zero lengths.
diff --git a/contrib/puff/pufftest.c b/contrib/puff/pufftest.c
index 7764814..5f72ecc 100644
--- a/contrib/puff/pufftest.c
+++ b/contrib/puff/pufftest.c
@@ -143,7 +143,7 @@ int main(int argc, char **argv)
143 len - sourcelen); 143 len - sourcelen);
144 } 144 }
145 145
146 /* if requested, inflate again and write decompressd data to stdout */ 146 /* if requested, inflate again and write decompressed data to stdout */
147 if (put && ret == 0) { 147 if (put && ret == 0) {
148 if (fail) 148 if (fail)
149 destlen >>= 1; 149 destlen >>= 1;
diff --git a/crc32.c b/crc32.c
index 561d0fe..c71a689 100644
--- a/crc32.c
+++ b/crc32.c
@@ -645,8 +645,8 @@ unsigned long ZEXPORT crc32_z(crc, buf, len)
645 len &= 7; 645 len &= 7;
646 646
647 /* Do three interleaved CRCs to realize the throughput of one crc32x 647 /* Do three interleaved CRCs to realize the throughput of one crc32x
648 instruction per cycle. Each CRC is calcuated on Z_BATCH words. The three 648 instruction per cycle. Each CRC is calculated on Z_BATCH words. The
649 CRCs are combined into a single CRC after each set of batches. */ 649 three CRCs are combined into a single CRC after each set of batches. */
650 while (num >= 3 * Z_BATCH) { 650 while (num >= 3 * Z_BATCH) {
651 crc1 = 0; 651 crc1 = 0;
652 crc2 = 0; 652 crc2 = 0;
diff --git a/deflate.c b/deflate.c
index 6ac891d..7f421e4 100644
--- a/deflate.c
+++ b/deflate.c
@@ -1680,7 +1680,7 @@ local void fill_window(s)
1680 * 1680 *
1681 * deflate_stored() is written to minimize the number of times an input byte is 1681 * deflate_stored() is written to minimize the number of times an input byte is
1682 * copied. It is most efficient with large input and output buffers, which 1682 * copied. It is most efficient with large input and output buffers, which
1683 * maximizes the opportunites to have a single copy from next_in to next_out. 1683 * maximizes the opportunities to have a single copy from next_in to next_out.
1684 */ 1684 */
1685local block_state deflate_stored(s, flush) 1685local block_state deflate_stored(s, flush)
1686 deflate_state *s; 1686 deflate_state *s;
diff --git a/examples/enough.c b/examples/enough.c
index 19cf08c..8a3cade 100644
--- a/examples/enough.c
+++ b/examples/enough.c
@@ -486,7 +486,7 @@ local void enough(int syms) {
486// are 286, 9, and 15 respectively, for the deflate literal/length code. The 486// are 286, 9, and 15 respectively, for the deflate literal/length code. The
487// possible codes are counted for each number of coded symbols from two to the 487// possible codes are counted for each number of coded symbols from two to the
488// maximum. The counts for each of those and the total number of codes are 488// maximum. The counts for each of those and the total number of codes are
489// shown. The maximum number of inflate table entires is then calculated across 489// shown. The maximum number of inflate table entries is then calculated across
490// all possible codes. Each new maximum number of table entries and the 490// all possible codes. Each new maximum number of table entries and the
491// associated sub-code (starting at root + 1 == 10 bits) is shown. 491// associated sub-code (starting at root + 1 == 10 bits) is shown.
492// 492//
diff --git a/examples/fitblk.c b/examples/fitblk.c
index c61de5c..68f5680 100644
--- a/examples/fitblk.c
+++ b/examples/fitblk.c
@@ -17,7 +17,7 @@
17 data in order to determine how much of that input will compress to 17 data in order to determine how much of that input will compress to
18 nearly the requested output block size. The first pass generates 18 nearly the requested output block size. The first pass generates
19 enough deflate blocks to produce output to fill the requested 19 enough deflate blocks to produce output to fill the requested
20 output size plus a specfied excess amount (see the EXCESS define 20 output size plus a specified excess amount (see the EXCESS define
21 below). The last deflate block may go quite a bit past that, but 21 below). The last deflate block may go quite a bit past that, but
22 is discarded. The second pass decompresses and recompresses just 22 is discarded. The second pass decompresses and recompresses just
23 the compressed data that fit in the requested plus excess sized 23 the compressed data that fit in the requested plus excess sized
@@ -109,7 +109,7 @@ local int recompress(z_streamp inf, z_streamp def)
109 if (ret == Z_MEM_ERROR) 109 if (ret == Z_MEM_ERROR)
110 return ret; 110 return ret;
111 111
112 /* compress what was decompresed until done or no room */ 112 /* compress what was decompressed until done or no room */
113 def->avail_in = RAWLEN - inf->avail_out; 113 def->avail_in = RAWLEN - inf->avail_out;
114 def->next_in = raw; 114 def->next_in = raw;
115 if (inf->avail_out != 0) 115 if (inf->avail_out != 0)
diff --git a/examples/gun.c b/examples/gun.c
index be44fa5..bea5497 100644
--- a/examples/gun.c
+++ b/examples/gun.c
@@ -43,7 +43,7 @@
43 gun will also decompress files made by Unix compress, which uses LZW 43 gun will also decompress files made by Unix compress, which uses LZW
44 compression. These files are automatically detected by virtue of their 44 compression. These files are automatically detected by virtue of their
45 magic header bytes. Since the end of Unix compress stream is marked by the 45 magic header bytes. Since the end of Unix compress stream is marked by the
46 end-of-file, they cannot be concantenated. If a Unix compress stream is 46 end-of-file, they cannot be concatenated. If a Unix compress stream is
47 encountered in an input file, it is the last stream in that file. 47 encountered in an input file, it is the last stream in that file.
48 48
49 Like gunzip and uncompress, the file attributes of the original compressed 49 Like gunzip and uncompress, the file attributes of the original compressed
diff --git a/examples/gzappend.c b/examples/gzappend.c
index d7eea3e..23e93cf 100644
--- a/examples/gzappend.c
+++ b/examples/gzappend.c
@@ -33,7 +33,7 @@
33 * - Add L to constants in lseek() calls 33 * - Add L to constants in lseek() calls
34 * - Remove some debugging information in error messages 34 * - Remove some debugging information in error messages
35 * - Use new data_type definition for zlib 1.2.1 35 * - Use new data_type definition for zlib 1.2.1
36 * - Simplfy and unify file operations 36 * - Simplify and unify file operations
37 * - Finish off gzip file in gztack() 37 * - Finish off gzip file in gztack()
38 * - Use deflatePrime() instead of adding empty blocks 38 * - Use deflatePrime() instead of adding empty blocks
39 * - Keep gzip file clean on appended file read errors 39 * - Keep gzip file clean on appended file read errors
@@ -54,7 +54,7 @@
54 block boundary to facilitate locating and modifying the last block bit at 54 block boundary to facilitate locating and modifying the last block bit at
55 the start of the final deflate block. Also whether using Z_BLOCK or not, 55 the start of the final deflate block. Also whether using Z_BLOCK or not,
56 another required feature of zlib 1.2.x is that inflate() now provides the 56 another required feature of zlib 1.2.x is that inflate() now provides the
57 number of unusued bits in the last input byte used. gzappend will not work 57 number of unused bits in the last input byte used. gzappend will not work
58 with versions of zlib earlier than 1.2.1. 58 with versions of zlib earlier than 1.2.1.
59 59
60 gzappend first decompresses the gzip file internally, discarding all but 60 gzappend first decompresses the gzip file internally, discarding all but
diff --git a/examples/gzlog.h b/examples/gzlog.h
index 86f0cec..4f05109 100644
--- a/examples/gzlog.h
+++ b/examples/gzlog.h
@@ -40,7 +40,7 @@
40 its new size at that time. After each write operation, the log file is a 40 its new size at that time. After each write operation, the log file is a
41 valid gzip file that can decompressed to recover what was written. 41 valid gzip file that can decompressed to recover what was written.
42 42
43 The gzlog operations can be interupted at any point due to an application or 43 The gzlog operations can be interrupted at any point due to an application or
44 system crash, and the log file will be recovered the next time the log is 44 system crash, and the log file will be recovered the next time the log is
45 opened with gzlog_open(). 45 opened with gzlog_open().
46 */ 46 */
diff --git a/examples/zran.c b/examples/zran.c
index f279db7..879c47c 100644
--- a/examples/zran.c
+++ b/examples/zran.c
@@ -21,7 +21,7 @@
21 An access point can be created at the start of any deflate block, by saving 21 An access point can be created at the start of any deflate block, by saving
22 the starting file offset and bit of that block, and the 32K bytes of 22 the starting file offset and bit of that block, and the 32K bytes of
23 uncompressed data that precede that block. Also the uncompressed offset of 23 uncompressed data that precede that block. Also the uncompressed offset of
24 that block is saved to provide a referece for locating a desired starting 24 that block is saved to provide a reference for locating a desired starting
25 point in the uncompressed stream. deflate_index_build() works by 25 point in the uncompressed stream. deflate_index_build() works by
26 decompressing the input zlib or gzip stream a block at a time, and at the 26 decompressing the input zlib or gzip stream a block at a time, and at the
27 end of each block deciding if enough uncompressed data has gone by to 27 end of each block deciding if enough uncompressed data has gone by to
diff --git a/inftrees.h b/inftrees.h
index baa53a0..f536653 100644
--- a/inftrees.h
+++ b/inftrees.h
@@ -38,7 +38,7 @@ typedef struct {
38/* Maximum size of the dynamic table. The maximum number of code structures is 38/* Maximum size of the dynamic table. The maximum number of code structures is
39 1444, which is the sum of 852 for literal/length codes and 592 for distance 39 1444, which is the sum of 852 for literal/length codes and 592 for distance
40 codes. These values were found by exhaustive searches using the program 40 codes. These values were found by exhaustive searches using the program
41 examples/enough.c found in the zlib distribtution. The arguments to that 41 examples/enough.c found in the zlib distribution. The arguments to that
42 program are the number of symbols, the initial root table size, and the 42 program are the number of symbols, the initial root table size, and the
43 maximum bit length of a code. "enough 286 9 15" for literal/length codes 43 maximum bit length of a code. "enough 286 9 15" for literal/length codes
44 returns returns 852, and "enough 30 6 15" for distance codes returns 592. 44 returns returns 852, and "enough 30 6 15" for distance codes returns 592.
diff --git a/make_vms.com b/make_vms.com
index 65e9d0c..4dc8a89 100644
--- a/make_vms.com
+++ b/make_vms.com
@@ -14,9 +14,9 @@ $! 0.02 20061008 Adapt to new Makefile.in
14$! 0.03 20091224 Add support for large file check 14$! 0.03 20091224 Add support for large file check
15$! 0.04 20100110 Add new gzclose, gzlib, gzread, gzwrite 15$! 0.04 20100110 Add new gzclose, gzlib, gzread, gzwrite
16$! 0.05 20100221 Exchange zlibdefs.h by zconf.h.in 16$! 0.05 20100221 Exchange zlibdefs.h by zconf.h.in
17$! 0.06 20120111 Fix missing amiss_err, update zconf_h.in, fix new exmples 17$! 0.06 20120111 Fix missing amiss_err, update zconf_h.in, fix new examples
18$! subdir path, update module search in makefile.in 18$! subdir path, update module search in makefile.in
19$! 0.07 20120115 Triggered by work done by Alexey Chupahin completly redesigned 19$! 0.07 20120115 Triggered by work done by Alexey Chupahin completely redesigned
20$! shared image creation 20$! shared image creation
21$! 0.08 20120219 Make it work on VAX again, pre-load missing symbols to shared 21$! 0.08 20120219 Make it work on VAX again, pre-load missing symbols to shared
22$! image 22$! image
diff --git a/os400/README400 b/os400/README400
index c83254a..b8595d8 100644
--- a/os400/README400
+++ b/os400/README400
@@ -3,7 +3,7 @@
31) Download and unpack the zlib tarball to some IFS directory. 31) Download and unpack the zlib tarball to some IFS directory.
4 (i.e.: /path/to/the/zlib/ifs/source/directory) 4 (i.e.: /path/to/the/zlib/ifs/source/directory)
5 5
6 If the installed IFS command suppors gzip format, this is straightforward, 6 If the installed IFS command supports gzip format, this is straightforward,
7else you have to unpack first to some directory on a system supporting it, 7else you have to unpack first to some directory on a system supporting it,
8then move the whole directory to the IFS via the network (via SMB or FTP). 8then move the whole directory to the IFS via the network (via SMB or FTP).
9 9
@@ -43,6 +43,6 @@ Notes: For OS/400 ILE RPG programmers, a /copy member defining the ZLIB
43 43
44 Remember that most foreign textual data are ASCII coded: this 44 Remember that most foreign textual data are ASCII coded: this
45 implementation does not handle conversion from/to ASCII, so 45 implementation does not handle conversion from/to ASCII, so
46 text data code conversions must be done explicitely. 46 text data code conversions must be done explicitly.
47 47
48 Mainly for the reason above, always open zipped files in binary mode. 48 Mainly for the reason above, always open zipped files in binary mode.
diff --git a/trees.c b/trees.c
index 8b438cc..72b521f 100644
--- a/trees.c
+++ b/trees.c
@@ -312,7 +312,7 @@ local void tr_static_init()
312} 312}
313 313
314/* =========================================================================== 314/* ===========================================================================
315 * Genererate the file trees.h describing the static trees. 315 * Generate the file trees.h describing the static trees.
316 */ 316 */
317#ifdef GEN_TREES_H 317#ifdef GEN_TREES_H
318# ifndef ZLIB_DEBUG 318# ifndef ZLIB_DEBUG
diff --git a/zlib.h b/zlib.h
index eb87517..f29db06 100644
--- a/zlib.h
+++ b/zlib.h
@@ -276,7 +276,7 @@ ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush));
276 == 0), or after each call of deflate(). If deflate returns Z_OK and with 276 == 0), or after each call of deflate(). If deflate returns Z_OK and with
277 zero avail_out, it must be called again after making room in the output 277 zero avail_out, it must be called again after making room in the output
278 buffer because there might be more output pending. See deflatePending(), 278 buffer because there might be more output pending. See deflatePending(),
279 which can be used if desired to determine whether or not there is more ouput 279 which can be used if desired to determine whether or not there is more output
280 in that case. 280 in that case.
281 281
282 Normally the parameter flush is set to Z_NO_FLUSH, which allows deflate to 282 Normally the parameter flush is set to Z_NO_FLUSH, which allows deflate to
@@ -660,7 +660,7 @@ ZEXTERN int ZEXPORT deflateGetDictionary OF((z_streamp strm,
660 to dictionary. dictionary must have enough space, where 32768 bytes is 660 to dictionary. dictionary must have enough space, where 32768 bytes is
661 always enough. If deflateGetDictionary() is called with dictionary equal to 661 always enough. If deflateGetDictionary() is called with dictionary equal to
662 Z_NULL, then only the dictionary length is returned, and nothing is copied. 662 Z_NULL, then only the dictionary length is returned, and nothing is copied.
663 Similary, if dictLength is Z_NULL, then it is not set. 663 Similarly, if dictLength is Z_NULL, then it is not set.
664 664
665 deflateGetDictionary() may return a length less than the window size, even 665 deflateGetDictionary() may return a length less than the window size, even
666 when more than the window size in input has been provided. It may return up 666 when more than the window size in input has been provided. It may return up
@@ -915,7 +915,7 @@ ZEXTERN int ZEXPORT inflateGetDictionary OF((z_streamp strm,
915 to dictionary. dictionary must have enough space, where 32768 bytes is 915 to dictionary. dictionary must have enough space, where 32768 bytes is
916 always enough. If inflateGetDictionary() is called with dictionary equal to 916 always enough. If inflateGetDictionary() is called with dictionary equal to
917 Z_NULL, then only the dictionary length is returned, and nothing is copied. 917 Z_NULL, then only the dictionary length is returned, and nothing is copied.
918 Similary, if dictLength is Z_NULL, then it is not set. 918 Similarly, if dictLength is Z_NULL, then it is not set.
919 919
920 inflateGetDictionary returns Z_OK on success, or Z_STREAM_ERROR if the 920 inflateGetDictionary returns Z_OK on success, or Z_STREAM_ERROR if the
921 stream state is inconsistent. 921 stream state is inconsistent.
@@ -1437,12 +1437,12 @@ ZEXTERN z_size_t ZEXPORT gzfread OF((voidp buf, z_size_t size, z_size_t nitems,
1437 1437
1438 In the event that the end of file is reached and only a partial item is 1438 In the event that the end of file is reached and only a partial item is
1439 available at the end, i.e. the remaining uncompressed data length is not a 1439 available at the end, i.e. the remaining uncompressed data length is not a
1440 multiple of size, then the final partial item is nevetheless read into buf 1440 multiple of size, then the final partial item is nevertheless read into buf
1441 and the end-of-file flag is set. The length of the partial item read is not 1441 and the end-of-file flag is set. The length of the partial item read is not
1442 provided, but could be inferred from the result of gztell(). This behavior 1442 provided, but could be inferred from the result of gztell(). This behavior
1443 is the same as the behavior of fread() implementations in common libraries, 1443 is the same as the behavior of fread() implementations in common libraries,
1444 but it prevents the direct use of gzfread() to read a concurrently written 1444 but it prevents the direct use of gzfread() to read a concurrently written
1445 file, reseting and retrying on end-of-file, when size is not 1. 1445 file, resetting and retrying on end-of-file, when size is not 1.
1446*/ 1446*/
1447 1447
1448ZEXTERN int ZEXPORT gzwrite OF((gzFile file, voidpc buf, unsigned len)); 1448ZEXTERN int ZEXPORT gzwrite OF((gzFile file, voidpc buf, unsigned len));
diff --git a/zlib2ansi b/zlib2ansi
index 15e3e16..23b2a1d 100755
--- a/zlib2ansi
+++ b/zlib2ansi
@@ -8,7 +8,7 @@
8 8
9# TODO 9# TODO
10# 10#
11# Asumes no function pointer parameters. unless they are typedefed. 11# Assumes no function pointer parameters. unless they are typedefed.
12# Assumes no literal strings that look like function definitions 12# Assumes no literal strings that look like function definitions
13# Assumes functions start at the beginning of a line 13# Assumes functions start at the beginning of a line
14 14
@@ -104,7 +104,7 @@ sub StripComments
104 104
105 no warnings; 105 no warnings;
106 106
107 # Strip C & C++ coments 107 # Strip C & C++ comments
108 # From the perlfaq 108 # From the perlfaq
109 $_[0] =~ 109 $_[0] =~
110 110