aboutsummaryrefslogtreecommitdiff
path: root/contrib
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 /contrib
parent1eb7682f845ac9e9bf9ae35bbfb3bad5dacbd91d (diff)
downloadzlib-5752b171fd4cc96b8d1f9526ec1940199c6e9740.tar.gz
zlib-5752b171fd4cc96b8d1f9526ec1940199c6e9740.tar.bz2
zlib-5752b171fd4cc96b8d1f9526ec1940199c6e9740.zip
Fix some typos.
No code changes.
Diffstat (limited to 'contrib')
-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
4 files changed, 5 insertions, 5 deletions
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;