[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zlib-devel
Subject:    [Zlib-devel] [PATCH 3/3] Fix typos.
From:       neleai () seznam ! cz (=?utf-8?B?T25kxZllaiBCw61sa2E=?=)
Date:       2013-07-21 22:17:11
Message-ID: 20130721221711.GC14695 () domone
[Download RAW message or body]

A third part of cleanup consist of generating list of likely typos by
stylepp_spellcheck script

Then I checked this list by aspell invoked from 
stylepp_dictionary script where I made corrections as in list below.

Then I ran stylepp_fix_comment to generate patch.

You can keep your codebase clean by periodically repeating steps that I
done.

              accees access
          alignement alignment
       concantenated concatenated
         concatented concatenated
               creat create
            currenty currently
            curretly currently
         decompresed decompressed
         decompressd decompressed
              defaut default
            depedent dependent
            derrived derived
       distribtution distribution
            donwload download
             easilty easily
             entires entries
             esclude exclude
         explicitely explicitly
             extened extended
             follwed followed
       incompartible incompatible
          interupted interrupted
              mathod method
             orignal original
              paches patches
           producted produced
          readabilty readability
             recived received
           recreting recreating
       reocmpression recompression
             spaning spanning
            specfied specified
           structore structure
             unusued unused

---
 as400/readme.txt                      |  2 +-
 contrib/ada/readme.txt                |  2 +-
 contrib/dotzlib/readme.txt            |  2 +-
 contrib/infback9/inftree9.h           |  2 +-
 contrib/masmx86/readme.txt            |  2 +-
 contrib/minizip/MiniZip64_Changes.txt |  2 +-
 contrib/minizip/unzip.c               | 10 +++++-----
 contrib/minizip/unzip.h               |  2 +-
 contrib/minizip/zip.c                 | 20 ++++++++++----------
 contrib/puff/puff.c                   |  4 ++--
 contrib/puff/pufftest.c               |  2 +-
 examples/enough.c                     |  2 +-
 examples/fitblk.c                     |  6 +++---
 examples/gun.c                        |  4 ++--
 examples/gzappend.c                   |  2 +-
 examples/gzlog.h                      |  2 +-
 examples/zran.c                       |  2 +-
 inftrees.h                            |  2 +-
 zlib.h                                |  6 +++---
 19 files changed, 38 insertions(+), 38 deletions(-)

diff --git a/as400/readme.txt b/as400/readme.txt
index 7b5d93b..7180d91 100644
--- a/as400/readme.txt
+++ b/as400/readme.txt
@@ -110,6 +110,6 @@ Notes:  For AS400 ILE RPG programmers, a /copy member defining \
the ZLIB  
         Remember that most foreign textual data are ASCII coded: this
                 implementation does not handle conversion from/to ASCII, so
-                text data code conversions must be done explicitely.
+                text data code conversions must be done explicitly.
 
         Mainly for the reason above, always open zipped files in binary mode.
diff --git a/contrib/ada/readme.txt b/contrib/ada/readme.txt
index ce4d2ca..9363c07 100644
--- a/contrib/ada/readme.txt
+++ b/contrib/ada/readme.txt
@@ -9,7 +9,7 @@ It provides Ada-style access to the ZLib C library.
         Here are the main changes since ZLib.Ada 1.2:
 
 - Attension: ZLib.Read generic routine have a initialization requirement
-  for Read_Last parameter now. It is a bit incompartible with previous version,
+  for Read_Last parameter now. It is a bit incompatible with previous version,
   but extends functionality, we could use new parameters Allow_Read_Some and
   Flush now.
 
diff --git a/contrib/dotzlib/readme.txt b/contrib/dotzlib/readme.txt
index b239572..47454fc 100644
--- a/contrib/dotzlib/readme.txt
+++ b/contrib/dotzlib/readme.txt
@@ -36,7 +36,7 @@ Build instructions:
    in the same directory as the DotZLib.build file.
    You can define 2 properties on the nant command-line to control the build:
    debug={true|false} to toggle between release/debug builds (default=true).
-   nunit={true|false} to include or esclude unit tests (default=true).
+   nunit={true|false} to include or exclude unit tests (default=true).
    Also the target clean will remove binaries.
    Output file (DotZLib.dll) will be found in either ./DotZLib/bin/release
    or ./DotZLib/bin/debug, depending on whether you are building the release
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 {
 /* Maximum size of the dynamic table.  The maximum number of code structures is
    1446, which is the sum of 852 for literal/length codes and 594 for distance
    codes.  These values were found by exhaustive searches using the program
-   examples/enough.c found in the zlib distribtution.  The arguments to that
+   examples/enough.c found in the zlib distribution.  The arguments to that
    program are the number of symbols, the initial root table size, and the
    maximum bit length of a code.  "enough 286 9 15" for literal/length codes
    returns returns 852, and "enough 32 6 15" for distance codes returns 594.
diff --git a/contrib/masmx86/readme.txt b/contrib/masmx86/readme.txt
index 3271f72..24f76e5 100644
--- a/contrib/masmx86/readme.txt
+++ b/contrib/masmx86/readme.txt
@@ -9,7 +9,7 @@ Use instructions
 ----------------
 Assemble using MASM, and copy the object files into the zlib source
 directory, then run the appropriate makefile, as suggested below.  You can
-donwload MASM from here:
+download MASM from here:
 
     http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=7a1c9da0-0510-44a2-b042-7ef370530c64
  
diff --git a/contrib/minizip/MiniZip64_Changes.txt \
b/contrib/minizip/MiniZip64_Changes.txt index 13a1bd9..3759468 100644
--- a/contrib/minizip/MiniZip64_Changes.txt
+++ b/contrib/minizip/MiniZip64_Changes.txt
@@ -1,5 +1,5 @@
 
-MiniZip 1.1 was derrived from MiniZip at version 1.01f
+MiniZip 1.1 was derived from MiniZip at version 1.01f
 
 Change in 1.0 (Okt 2009)
  - **TODO - Add history**
diff --git a/contrib/minizip/unzip.c b/contrib/minizip/unzip.c
index f376eaf..8e92ede 100644
--- a/contrib/minizip/unzip.c
+++ b/contrib/minizip/unzip.c
@@ -153,7 +153,7 @@ typedef struct
     ZPOS64_T rest_read_compressed; /* number of byte to be decompressed */
     ZPOS64_T rest_read_uncompressed;/*number of byte to be obtained after decomp*/
     zlib_filefunc64_32_def z_filefunc;
-    voidpf filestream;        /* io structore of the zipfile */
+    voidpf filestream;        /* io structure of the zipfile */
     uLong compression_method;   /* compression method (0==store) */
     ZPOS64_T byte_before_the_zipfile;/* byte before the zipfile, (>0 for sfx)*/
     int   raw;
@@ -166,7 +166,7 @@ typedef struct
 {
     zlib_filefunc64_32_def z_filefunc;
     int is64bitOpenFunction;
-    voidpf filestream;        /* io structore of the zipfile */
+    voidpf filestream;        /* io structure of the zipfile */
     unz_global_info64 gi;       /* public global information */
     ZPOS64_T byte_before_the_zipfile;/* byte before the zipfile, (>0 for sfx)*/
     ZPOS64_T num_file;             /* number of the current file in the zipfile*/
@@ -383,7 +383,7 @@ local int strcmpcasenosensitive_internal (const char* fileName1, \
const char* fil  If iCaseSenisivity = 1, comparison is case sensitivity (like strcmp)
    If iCaseSenisivity = 2, comparison is not case sensitivity (like strcmpi
                                                                 or strcasecmp)
-   If iCaseSenisivity = 0, case sensitivity is defaut of your operating system
+   If iCaseSenisivity = 0, case sensitivity is default of your operating system
         (like 1 on Unix, 2 on Windows)
 
 */
@@ -591,9 +591,9 @@ local unzFile unzOpenInternal (const void *path,
     uLong   uL;
 
     uLong number_disk;          /* number of the current dist, used for
-                                   spaning ZIP, unsupported, always 0*/
+                                   spanning ZIP, unsupported, always 0*/
     uLong number_disk_with_CD;  /* number the the disk with central dir, used
-                                   for spaning ZIP, unsupported, always 0*/
+                                   for spanning ZIP, unsupported, always 0*/
     ZPOS64_T number_entry_CD;      /* total number of entries in
                                    the central dir
                                    (same than number_entry on nospan) */
diff --git a/contrib/minizip/unzip.h b/contrib/minizip/unzip.h
index 9e7378d..b6ccf85 100644
--- a/contrib/minizip/unzip.h
+++ b/contrib/minizip/unzip.h
@@ -158,7 +158,7 @@ extern int ZEXPORT unzStringFileNameCompare OF ((const char* \
fileName1,  If iCaseSenisivity = 1, comparison is case sensitivity (like strcmp)
    If iCaseSenisivity = 2, comparison is not case sensitivity (like strcmpi
                                 or strcasecmp)
-   If iCaseSenisivity = 0, case sensitivity is defaut of your operating system
+   If iCaseSenisivity = 0, case sensitivity is default of your operating system
     (like 1 on Unix, 2 on Windows)
 */
 
diff --git a/contrib/minizip/zip.c b/contrib/minizip/zip.c
index 976aad0..f0ef2ee 100644
--- a/contrib/minizip/zip.c
+++ b/contrib/minizip/zip.c
@@ -14,7 +14,7 @@
    Oct-2009 - Mathias Svensson - Added Zip64 Support when creating new file archives
    Oct-2009 - Mathias Svensson - Did some code cleanup and refactoring to get better \
overview of some functions.  Oct-2009 - Mathias Svensson - Added \
                zipRemoveExtraInfoBlock to strip extra field data from its ZIP64 data
-                                 It is used when recreting zip archive with RAW when \
deleting items from a zip. +                                 It is used when \
                recreating zip archive with RAW when deleting items from a zip.
                                  ZIP64 data is automatically added to items that \
needs it, and existing ZIP64 data need to be removed.  Oct-2009 - Mathias Svensson - \
Added support for BZIP2 as compression mode (bzip2 lib is required)  Jan-2010 - back \
to unzip and minizip 1.0 name scheme, with compatibility layer @@ -47,7 +47,7 @@
 /* compile with -Dlocal if your debugger can't find static symbols */
 
 #ifndef VERSIONMADEBY
-# define VERSIONMADEBY   (0x0) /* platform depedent */
+# define VERSIONMADEBY   (0x0) /* platform dependent */
 #endif
 
 #ifndef Z_BUFSIZE
@@ -116,7 +116,7 @@ typedef struct linkedlist_datablock_internal_s
   struct linkedlist_datablock_internal_s* next_datablock;
   uLong  avail_in_this_block;
   uLong  filled_in_this_block;
-  uLong  unused; /* for future use and alignement */
+  uLong  unused; /* for future use and alignment */
   unsigned char data[SIZEDATA_INDATABLOCK];
 } linkedlist_datablock_internal;
 
@@ -138,20 +138,20 @@ typedef struct
     uInt pos_in_buffered_data;  /* last written byte in buffered_data */
 
     ZPOS64_T pos_local_header;     /* offset of the local header of the file
-                                     currenty writing */
+                                     currently writing */
     char* central_header;       /* central header data for the current file */
     uLong size_centralExtra;
     uLong size_centralheader;   /* size of the central header for cur file */
     uLong size_centralExtraFree; /* Extra bytes allocated to the centralheader but \
that are not used */  uLong flag;                 /* flag of the file currently \
writing */  
-    int  method;                /* compression method of file currenty wr.*/
+    int  method;                /* compression method of file currently wr.*/
     int  raw;                   /* 1 for directly writing raw data */
     Byte buffered_data[Z_BUFSIZE];/* buffer contain compressed data to be writ*/
     uLong dosDate;
     uLong crc32;
     int  encrypt;
-    int  zip64;               /* Add ZIP64 extened information in the extra field */
+    int  zip64;               /* Add ZIP64 extended information in the extra field \
*/  ZPOS64_T pos_zip64extrainfo;
     ZPOS64_T totalCompressedData;
     ZPOS64_T totalUncompressedData;
@@ -165,10 +165,10 @@ typedef struct
 typedef struct
 {
     zlib_filefunc64_32_def z_filefunc;
-    voidpf filestream;        /* io structore of the zipfile */
+    voidpf filestream;        /* io structure of the zipfile */
     linkedlist_data central_dir;/* datablock with central dir in construction*/
     int  in_opened_file_inzip;  /* 1 if a file in the zip is currently writ.*/
-    curfile64_info ci;            /* info on the file curretly writing */
+    curfile64_info ci;            /* info on the file currently writing */
 
     ZPOS64_T begin_pos;            /* position of the beginning of the zipfile */
     ZPOS64_T add_position_when_writting_offset;
@@ -648,9 +648,9 @@ int LoadCentralDirectoryRecord(zip64_internal* pziinit)
   uLong uL;
 
   uLong number_disk;          /* number of the current dist, used for
-                              spaning ZIP, unsupported, always 0*/
+                              spanning ZIP, unsupported, always 0*/
   uLong number_disk_with_CD;  /* number the the disk with central dir, used
-                              for spaning ZIP, unsupported, always 0*/
+                              for spanning ZIP, unsupported, always 0*/
   ZPOS64_T number_entry;
   ZPOS64_T number_entry_CD;      /* total number of entries in
                                 the central dir
diff --git a/contrib/puff/puff.c b/contrib/puff/puff.c
index 77af7a1..3cd1b1e 100644
--- a/contrib/puff/puff.c
+++ b/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
@@ -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/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)
                                      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;
diff --git a/examples/enough.c b/examples/enough.c
index b81f502..be8819f 100644
--- a/examples/enough.c
+++ b/examples/enough.c
@@ -440,7 +440,7 @@ local void enough(int syms)
    values are 286, 9, and 15 respectively, for the deflate literal/length code.
    The possible codes are counted for each number of coded symbols from two to
    the maximum.  The counts for each of those and the total number of codes are
-   shown.  The maximum number of inflate table entires is then calculated
+   shown.  The maximum number of inflate table entries is then calculated
    across all possible codes.  Each new maximum number of table entries and the
    associated sub-code (starting at root + 1 == 10 bits) is shown.
 
diff --git a/examples/fitblk.c b/examples/fitblk.c
index c61de5c..723dc00 100644
--- a/examples/fitblk.c
+++ b/examples/fitblk.c
@@ -17,7 +17,7 @@
    data in order to determine how much of that input will compress to
    nearly the requested output block size.  The first pass generates
    enough deflate blocks to produce output to fill the requested
-   output size plus a specfied excess amount (see the EXCESS define
+   output size plus a specified excess amount (see the EXCESS define
    below).  The last deflate block may go quite a bit past that, but
    is discarded.  The second pass decompresses and recompresses just
    the compressed data that fit in the requested plus excess sized
@@ -109,7 +109,7 @@ local int recompress(z_streamp inf, z_streamp def)
         if (ret == Z_MEM_ERROR)
             return ret;
 
-        /* compress what was decompresed until done or no room */
+        /* compress what was decompressed until done or no room */
         def->avail_in = RAWLEN - inf->avail_out;
         def->next_in = raw;
         if (inf->avail_out != 0)
@@ -198,7 +198,7 @@ int main(int argc, char **argv)
     if (ret == Z_MEM_ERROR)
         quit("out of memory");
 
-    /* set up for next reocmpression */
+    /* set up for next recompression */
     ret = inflateReset(&inf);
     assert(ret != Z_STREAM_ERROR);
     ret = deflateReset(&def);
diff --git a/examples/gun.c b/examples/gun.c
index 97df1fd..f22340a 100644
--- a/examples/gun.c
+++ b/examples/gun.c
@@ -43,10 +43,10 @@
    gun will also decompress files made by Unix compress, which uses LZW
    compression.  These files are automatically detected by virtue of their
    magic header bytes.  Since the end of Unix compress stream is marked by the
-   end-of-file, they cannot be concantenated.  If a Unix compress stream is
+   end-of-file, they cannot be concatenated.  If a Unix compress stream is
    encountered in an input file, it is the last stream in that file.
 
-   Like gunzip and uncompress, the file attributes of the orignal compressed
+   Like gunzip and uncompress, the file attributes of the original compressed
    file are maintained in the final uncompressed file, to the extent that the
    user permissions allow it.
 
diff --git a/examples/gzappend.c b/examples/gzappend.c
index 662dec3..39dafda 100644
--- a/examples/gzappend.c
+++ b/examples/gzappend.c
@@ -54,7 +54,7 @@
    block boundary to facilitate locating and modifying the last block bit at
    the start of the final deflate block.  Also whether using Z_BLOCK or not,
    another required feature of zlib 1.2.x is that inflate() now provides the
-   number of unusued bits in the last input byte used.  gzappend will not work
+   number of unused bits in the last input byte used.  gzappend will not work
    with versions of zlib earlier than 1.2.1.
 
    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 @@
    its new size at that time.  After each write operation, the log file is a
    valid gzip file that can decompressed to recover what was written.
 
-   The gzlog operations can be interupted at any point due to an application or
+   The gzlog operations can be interrupted at any point due to an application or
    system crash, and the log file will be recovered the next time the log is
    opened with gzlog_open().
  */
diff --git a/examples/zran.c b/examples/zran.c
index b8c87e4..0c7578e 100644
--- a/examples/zran.c
+++ b/examples/zran.c
@@ -27,7 +27,7 @@
    grows as needed to accommodate the points.
 
    To use the index, an offset in the uncompressed data is provided, for which
-   the latest accees point at or preceding that offset is located in the index.
+   the latest access point at or preceding that offset is located in the index.
    The input file is positioned to the specified location in the index, and if
    necessary the first few bits of the compressed data is read from the file.
    inflate is initialized with those bits and the 32K of uncompressed data, and
diff --git a/inftrees.h b/inftrees.h
index baa53a0..f536653 100644
--- a/inftrees.h
+++ b/inftrees.h
@@ -38,7 +38,7 @@ typedef struct {
 /* Maximum size of the dynamic table.  The maximum number of code structures is
    1444, which is the sum of 852 for literal/length codes and 592 for distance
    codes.  These values were found by exhaustive searches using the program
-   examples/enough.c found in the zlib distribtution.  The arguments to that
+   examples/enough.c found in the zlib distribution.  The arguments to that
    program are the number of symbols, the initial root table size, and the
    maximum bit length of a code.  "enough 286 9 15" for literal/length codes
    returns returns 852, and "enough 30 6 15" for distance codes returns 592.
diff --git a/zlib.h b/zlib.h
index 3e0c767..f5a61e5 100644
--- a/zlib.h
+++ b/zlib.h
@@ -487,7 +487,7 @@ ZEXTERN int ZEXPORT inflate OF((z_streamp strm, int flush));
   instead use raw inflate, see inflateInit2() below, or inflateBack() and
   perform their own processing of the gzip header and trailer.  When processing
   gzip-wrapped deflate data, strm->adler32 is set to the CRC-32 of the output
-  producted so far.  The CRC-32 is checked against the gzip trailer.
+  produced so far.  The CRC-32 is checked against the gzip trailer.
 
     inflate() returns Z_OK if some progress has been made (more input processed
   or more output produced), Z_STREAM_END if the end of the compressed data has
@@ -1264,7 +1264,7 @@ ZEXTERN gzFile ZEXPORT gzopen OF((const char *path, const char \
*mode));  ZEXTERN gzFile ZEXPORT gzdopen OF((int fd, const char *mode));
 /*
      gzdopen associates a gzFile with the file descriptor fd.  File descriptors
-   are obtained from calls like open, dup, creat, pipe or fileno (if the file
+   are obtained from calls like open, dup, create, pipe or fileno (if the file
    has been previously opened with fopen).  The mode parameter is as in gzopen.
 
      The next call of gzclose on the returned gzFile will also close the file
@@ -1418,7 +1418,7 @@ ZEXTERN int ZEXPORT gzflush OF((gzFile file, int flush));
      If the flush parameter is Z_FINISH, the remaining data is written and the
    gzip stream is completed in the output.  If gzwrite() is called again, a new
    gzip stream will be started in the output.  gzread() is able to read such
-   concatented gzip streams.
+   concatenated gzip streams.
 
      gzflush should be called only when strictly necessary because it will
    degrade compression if called too often.
-- 
1.8.3.2


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic