diff options
Diffstat (limited to '3rdparty/zlib/contrib/puff')
-rw-r--r-- | 3rdparty/zlib/contrib/puff/README | 2 | ||||
-rw-r--r-- | 3rdparty/zlib/contrib/puff/puff.c | 12 | ||||
-rw-r--r-- | 3rdparty/zlib/contrib/puff/pufftest.c | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/3rdparty/zlib/contrib/puff/README b/3rdparty/zlib/contrib/puff/README index bbc4cb595ec..d8192c78747 100644 --- a/3rdparty/zlib/contrib/puff/README +++ b/3rdparty/zlib/contrib/puff/README @@ -38,7 +38,7 @@ Then you can call puff() to decompress a deflate stream that is in memory in its entirety at source, to a sufficiently sized block of memory for the decompressed data at dest. puff() is the only external symbol in puff.c The only C library functions that puff.c needs are setjmp() and longjmp(), which -are used to simplify error checking in the code to improve readabilty. puff.c +are used to simplify error checking in the code to improve readability. puff.c does no memory allocation, and uses less than 2K bytes off of the stack. If destlen is not enough space for the uncompressed data, then inflate will diff --git a/3rdparty/zlib/contrib/puff/puff.c b/3rdparty/zlib/contrib/puff/puff.c index c6c90d71420..d759825ab1d 100644 --- a/3rdparty/zlib/contrib/puff/puff.c +++ b/3rdparty/zlib/contrib/puff/puff.c @@ -43,7 +43,7 @@ * - Use pointers instead of long to specify source and * destination sizes to avoid arbitrary 4 GB limits * 1.2 17 Mar 2002 - Add faster version of decode(), doubles speed (!), - * but leave simple version for readabilty + * but leave simple version for readability * - Make sure invalid distances detected if pointers * are 16 bits * - Fix fixed codes table error @@ -593,10 +593,10 @@ local int fixed(struct state *s) * provided for each of the literal/length symbols, and for each of the * distance symbols. * - * - If a symbol is not used in the block, this is represented by a zero as - * as the code length. This does not mean a zero-length code, but rather - * that no code should be created for this symbol. There is no way in the - * deflate format to represent a zero-length code. + * - If a symbol is not used in the block, this is represented by a zero as the + * code length. This does not mean a zero-length code, but rather that no + * code should be created for this symbol. There is no way in the deflate + * format to represent a zero-length code. * * - The maximum number of bits in a code is 15, so the possible lengths for * any code are 1..15. @@ -624,7 +624,7 @@ local int fixed(struct state *s) * are themselves compressed using Huffman codes and run-length encoding. In * the list of code lengths, a 0 symbol means no code, a 1..15 symbol means * that length, and the symbols 16, 17, and 18 are run-length instructions. - * Each of 16, 17, and 18 are follwed by extra bits to define the length of + * Each of 16, 17, and 18 are followed by extra bits to define the length of * the run. 16 copies the last length 3 to 6 times. 17 represents 3 to 10 * zero lengths, and 18 represents 11 to 138 zero lengths. Unused symbols * are common, hence the special coding for zero lengths. diff --git a/3rdparty/zlib/contrib/puff/pufftest.c b/3rdparty/zlib/contrib/puff/pufftest.c index 776481488c9..5f72ecc8276 100644 --- a/3rdparty/zlib/contrib/puff/pufftest.c +++ b/3rdparty/zlib/contrib/puff/pufftest.c @@ -143,7 +143,7 @@ int main(int argc, char **argv) len - sourcelen); } - /* if requested, inflate again and write decompressd data to stdout */ + /* if requested, inflate again and write decompressed data to stdout */ if (put && ret == 0) { if (fail) destlen >>= 1; |