diff options
author | THE-Spellchecker <The.Spellchecker@outlook.com> | 2023-12-02 16:56:47 -0600 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2024-01-17 13:49:11 -0800 |
commit | 01155ccc3f822a31291a64e4ecd5f1dbb8a8ee63 (patch) | |
tree | b00812cd5ba12d7ee803f2771d2f0e1304e66677 | |
parent | 16799d064b55a6b093fc52364f3343a1b1fa3b2f (diff) | |
download | zlib-01155ccc3f822a31291a64e4ecd5f1dbb8a8ee63.tar.gz zlib-01155ccc3f822a31291a64e4ecd5f1dbb8a8ee63.tar.bz2 zlib-01155ccc3f822a31291a64e4ecd5f1dbb8a8ee63.zip |
Fix random typos over several source and text files.
-rw-r--r-- | contrib/dotzlib/DotZLib/ChecksumImpl.cs | 2 | ||||
-rw-r--r-- | contrib/iostream3/zfstream.h | 4 | ||||
-rw-r--r-- | contrib/minizip/unzip.c | 4 | ||||
-rw-r--r-- | contrib/minizip/unzip.h | 2 | ||||
-rw-r--r-- | contrib/minizip/zip.c | 4 | ||||
-rw-r--r-- | doc/algorithm.txt | 2 | ||||
-rw-r--r-- | examples/zran.c | 2 | ||||
-rw-r--r-- | old/visual-basic.txt | 2 |
8 files changed, 11 insertions, 11 deletions
diff --git a/contrib/dotzlib/DotZLib/ChecksumImpl.cs b/contrib/dotzlib/DotZLib/ChecksumImpl.cs index c1230bf..de88dcf 100644 --- a/contrib/dotzlib/DotZLib/ChecksumImpl.cs +++ b/contrib/dotzlib/DotZLib/ChecksumImpl.cs | |||
@@ -34,7 +34,7 @@ namespace DotZLib | |||
34 | } | 34 | } |
35 | 35 | ||
36 | /// <summary> | 36 | /// <summary> |
37 | /// Initializes a new instance of the checksum generator basewith a specified value | 37 | /// Initializes a new instance of the checksum generator base with a specified value |
38 | /// </summary> | 38 | /// </summary> |
39 | /// <param name="initialValue">The value to set the current checksum to</param> | 39 | /// <param name="initialValue">The value to set the current checksum to</param> |
40 | public ChecksumGeneratorBase(uint initialValue) | 40 | public ChecksumGeneratorBase(uint initialValue) |
diff --git a/contrib/iostream3/zfstream.h b/contrib/iostream3/zfstream.h index 8574479..3dabc0f 100644 --- a/contrib/iostream3/zfstream.h +++ b/contrib/iostream3/zfstream.h | |||
@@ -413,7 +413,7 @@ template<typename T1, typename T2> | |||
413 | class gzomanip2 | 413 | class gzomanip2 |
414 | { | 414 | { |
415 | public: | 415 | public: |
416 | // Allows insertor to peek at internals | 416 | // Allows inserter to peek at internals |
417 | template <typename Ta, typename Tb> | 417 | template <typename Ta, typename Tb> |
418 | friend gzofstream& | 418 | friend gzofstream& |
419 | operator<<(gzofstream&, | 419 | operator<<(gzofstream&, |
@@ -452,7 +452,7 @@ template<typename T1, typename T2> | |||
452 | : func(f), val1(v1), val2(v2) | 452 | : func(f), val1(v1), val2(v2) |
453 | { } | 453 | { } |
454 | 454 | ||
455 | // Insertor applies underlying manipulator function to stream | 455 | // Inserter applies underlying manipulator function to stream |
456 | template<typename T1, typename T2> | 456 | template<typename T1, typename T2> |
457 | inline gzofstream& | 457 | inline gzofstream& |
458 | operator<<(gzofstream& s, const gzomanip2<T1,T2>& m) | 458 | operator<<(gzofstream& s, const gzomanip2<T1,T2>& m) |
diff --git a/contrib/minizip/unzip.c b/contrib/minizip/unzip.c index 8c42af6..d3c0cea 100644 --- a/contrib/minizip/unzip.c +++ b/contrib/minizip/unzip.c | |||
@@ -450,7 +450,7 @@ local ZPOS64_T unz64local_SearchCentralDir64(const zlib_filefunc64_32_def* pzlib | |||
450 | if (unz64local_getLong(pzlib_filefunc_def,filestream,&uL)!=UNZ_OK) | 450 | if (unz64local_getLong(pzlib_filefunc_def,filestream,&uL)!=UNZ_OK) |
451 | return CENTRALDIRINVALID; | 451 | return CENTRALDIRINVALID; |
452 | 452 | ||
453 | /* number of the disk with the start of the zip64 end of central directory */ | 453 | /* number of the disk with the start of the zip64 end of central directory */ |
454 | if (unz64local_getLong(pzlib_filefunc_def,filestream,&uL)!=UNZ_OK) | 454 | if (unz64local_getLong(pzlib_filefunc_def,filestream,&uL)!=UNZ_OK) |
455 | return CENTRALDIRINVALID; | 455 | return CENTRALDIRINVALID; |
456 | if (uL != 0) | 456 | if (uL != 0) |
@@ -499,7 +499,7 @@ local unzFile unzOpenInternal(const void *path, | |||
499 | 499 | ||
500 | uLong number_disk; /* number of the current dist, used for | 500 | uLong number_disk; /* number of the current dist, used for |
501 | spanning ZIP, unsupported, always 0*/ | 501 | spanning ZIP, unsupported, always 0*/ |
502 | uLong number_disk_with_CD; /* number the the disk with central dir, used | 502 | uLong number_disk_with_CD; /* number the disk with central dir, used |
503 | for spanning ZIP, unsupported, always 0*/ | 503 | for spanning ZIP, unsupported, always 0*/ |
504 | ZPOS64_T number_entry_CD; /* total number of entries in | 504 | ZPOS64_T number_entry_CD; /* total number of entries in |
505 | the central dir | 505 | the central dir |
diff --git a/contrib/minizip/unzip.h b/contrib/minizip/unzip.h index 1410584..5cfc9c6 100644 --- a/contrib/minizip/unzip.h +++ b/contrib/minizip/unzip.h | |||
@@ -306,7 +306,7 @@ extern int ZEXPORT unzGetCurrentFileInfo(unzFile file, | |||
306 | Get Info about the current file | 306 | Get Info about the current file |
307 | if pfile_info!=NULL, the *pfile_info structure will contain some info about | 307 | if pfile_info!=NULL, the *pfile_info structure will contain some info about |
308 | the current file | 308 | the current file |
309 | if szFileName!=NULL, the filemane string will be copied in szFileName | 309 | if szFileName!=NULL, the filename string will be copied in szFileName |
310 | (fileNameBufferSize is the size of the buffer) | 310 | (fileNameBufferSize is the size of the buffer) |
311 | if extraField!=NULL, the extra field information will be copied in extraField | 311 | if extraField!=NULL, the extra field information will be copied in extraField |
312 | (extraFieldBufferSize is the size of the buffer). | 312 | (extraFieldBufferSize is the size of the buffer). |
diff --git a/contrib/minizip/zip.c b/contrib/minizip/zip.c index e2e9da0..60bdffa 100644 --- a/contrib/minizip/zip.c +++ b/contrib/minizip/zip.c | |||
@@ -575,7 +575,7 @@ local ZPOS64_T zip64local_SearchCentralDir64(const zlib_filefunc64_32_def* pzlib | |||
575 | if (zip64local_getLong(pzlib_filefunc_def,filestream,&uL)!=ZIP_OK) | 575 | if (zip64local_getLong(pzlib_filefunc_def,filestream,&uL)!=ZIP_OK) |
576 | return 0; | 576 | return 0; |
577 | 577 | ||
578 | /* number of the disk with the start of the zip64 end of central directory */ | 578 | /* number of the disk with the start of the zip64 end of central directory */ |
579 | if (zip64local_getLong(pzlib_filefunc_def,filestream,&uL)!=ZIP_OK) | 579 | if (zip64local_getLong(pzlib_filefunc_def,filestream,&uL)!=ZIP_OK) |
580 | return 0; | 580 | return 0; |
581 | if (uL != 0) | 581 | if (uL != 0) |
@@ -1608,7 +1608,7 @@ extern int ZEXPORT zipCloseFileInZipRaw64(zipFile file, ZPOS64_T uncompressed_si | |||
1608 | 1608 | ||
1609 | if((uLong)(datasize + 4) > zi->ci.size_centralExtraFree) | 1609 | if((uLong)(datasize + 4) > zi->ci.size_centralExtraFree) |
1610 | { | 1610 | { |
1611 | // we can not write more data to the buffer that we have room for. | 1611 | // we cannot write more data to the buffer that we have room for. |
1612 | return ZIP_BADZIPFILE; | 1612 | return ZIP_BADZIPFILE; |
1613 | } | 1613 | } |
1614 | 1614 | ||
diff --git a/doc/algorithm.txt b/doc/algorithm.txt index c97f495..029e5a3 100644 --- a/doc/algorithm.txt +++ b/doc/algorithm.txt | |||
@@ -77,7 +77,7 @@ table took no time (and if you had infinite memory), then there would only | |||
77 | be a first level table to cover all the way to the longest code. However, | 77 | be a first level table to cover all the way to the longest code. However, |
78 | building the table ends up taking a lot longer for more bits since short | 78 | building the table ends up taking a lot longer for more bits since short |
79 | codes are replicated many times in such a table. What inflate() does is | 79 | codes are replicated many times in such a table. What inflate() does is |
80 | simply to make the number of bits in the first table a variable, and then | 80 | simply to make the number of bits in the first table a variable, and then |
81 | to set that variable for the maximum speed. | 81 | to set that variable for the maximum speed. |
82 | 82 | ||
83 | For inflate, which has 286 possible codes for the literal/length tree, the size | 83 | For inflate, which has 286 possible codes for the literal/length tree, the size |
diff --git a/examples/zran.c b/examples/zran.c index 32c9368..d313595 100644 --- a/examples/zran.c +++ b/examples/zran.c | |||
@@ -267,7 +267,7 @@ static inline void append_bits(unsigned value, int bits, | |||
267 | } | 267 | } |
268 | } | 268 | } |
269 | 269 | ||
270 | // Insert enough bits in the form of empty deflate blocks in front of the the | 270 | // Insert enough bits in the form of empty deflate blocks in front of the |
271 | // low bits bits of value, in order to bring the sequence to a byte boundary. | 271 | // low bits bits of value, in order to bring the sequence to a byte boundary. |
272 | // Then feed that to inflate(). This does what inflatePrime() does, except that | 272 | // Then feed that to inflate(). This does what inflatePrime() does, except that |
273 | // a negative value of bits is not supported. bits must be in 0..16. If the | 273 | // a negative value of bits is not supported. bits must be in 0..16. If the |
diff --git a/old/visual-basic.txt b/old/visual-basic.txt index 57efe58..3c8d2a4 100644 --- a/old/visual-basic.txt +++ b/old/visual-basic.txt | |||
@@ -115,7 +115,7 @@ SUCCESS Then | |||
115 | ReDim Preserve bytaryCpr(lngCprSiz - 1) | 115 | ReDim Preserve bytaryCpr(lngCprSiz - 1) |
116 | Open strCprPth For Binary Access Write As #1 | 116 | Open strCprPth For Binary Access Write As #1 |
117 | Put #1, , bytaryCpr() | 117 | Put #1, , bytaryCpr() |
118 | Put #1, , lngOriSiz 'Add the the original size value to the end | 118 | Put #1, , lngOriSiz 'Add the original size value to the end |
119 | (last 4 bytes) | 119 | (last 4 bytes) |
120 | Close #1 | 120 | Close #1 |
121 | Else | 121 | Else |