diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/enough.c | 2 | ||||
-rw-r--r-- | examples/fitblk.c | 4 | ||||
-rw-r--r-- | examples/gun.c | 2 | ||||
-rw-r--r-- | examples/gzappend.c | 4 | ||||
-rw-r--r-- | examples/gzlog.h | 2 | ||||
-rw-r--r-- | examples/zran.c | 2 |
6 files changed, 8 insertions, 8 deletions
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 |