changeset 40100:f63c4e7dfb31

Fix typos found by codespell. * lib/*.[hc]: Fix typos in comments. * pygnulib/*.py: Fix typos in error messages and comments.
author Tim Rühsen <tim.ruehsen@gmx.de>
date Sat, 12 Jan 2019 15:17:09 +0100
parents 9735cc8a05ba
children 7c995961cd9c
files ChangeLog lib/af_alg.h lib/argp-help.c lib/cdefs.h lib/file-set.c lib/get-rusage-as.c lib/mountlist.h lib/regexec.c lib/strptime.c lib/trigl.c lib/vma-iter.c pygnulib/GLError.py pygnulib/constants.py
diffstat 13 files changed, 20 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Jan 12 09:50:10 2019 +0100
+++ b/ChangeLog	Sat Jan 12 15:17:09 2019 +0100
@@ -1,3 +1,9 @@
+2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
+
+	Fix typos found by codespell.
+	* lib/*.[hc]: Fix typos in comments.
+	* pygnulib/*.py: Fix typos in error messages and comments.
+
 2019-01-12  Bruno Haible  <bruno@clisp.org>
 
 	doc: Fix documentation about container data types.
--- a/lib/af_alg.h	Sat Jan 12 09:50:10 2019 +0100
+++ b/lib/af_alg.h	Sat Jan 12 15:17:09 2019 +0100
@@ -66,7 +66,7 @@
    STREAM is an open file stream.  The last operation on STREAM should
    not be 'ungetc', and if STREAM is also open for writing it should
    have been fflushed since its last write.  Read from the current
-   position to the end of STREAM.  Handle regular files efficently.
+   position to the end of STREAM.  Handle regular files efficiently.
 
    ALG is the message digest algorithm; see the file /proc/crypto.
 
--- a/lib/argp-help.c	Sat Jan 12 09:50:10 2019 +0100
+++ b/lib/argp-help.c	Sat Jan 12 15:17:09 2019 +0100
@@ -1556,7 +1556,7 @@
 }
 
 /* Output a usage message for ARGP to STREAM.  If called from
-   argp_state_help, STATE is the relevent parsing state.  FLAGS are from the
+   argp_state_help, STATE is the relevant parsing state.  FLAGS are from the
    set ARGP_HELP_*.  NAME is what to use wherever a 'program name' is
    needed. */
 static void
--- a/lib/cdefs.h	Sat Jan 12 09:50:10 2019 +0100
+++ b/lib/cdefs.h	Sat Jan 12 15:17:09 2019 +0100
@@ -340,7 +340,7 @@
    semantics.
 
    clang++ identifies itself as gcc-4.2, but has support for GNU inlining
-   semantics, that can be checked fot by using the __GNUC_STDC_INLINE_ and
+   semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
    __GNUC_GNU_INLINE__ macro definitions.  */
 #if (!defined __cplusplus || __GNUC_PREREQ (4,3) \
      || (defined __clang__ && (defined __GNUC_STDC_INLINE__ \
--- a/lib/file-set.c	Sat Jan 12 09:50:10 2019 +0100
+++ b/lib/file-set.c	Sat Jan 12 15:17:09 2019 +0100
@@ -48,7 +48,7 @@
 
     if (ent_from_table != ent)
       {
-        /* There was alread a matching entry in the table, so ENT was
+        /* There was already a matching entry in the table, so ENT was
            not inserted.  Free it.  */
         triple_free (ent);
       }
--- a/lib/get-rusage-as.c	Sat Jan 12 09:50:10 2019 +0100
+++ b/lib/get-rusage-as.c	Sat Jan 12 15:17:09 2019 +0100
@@ -91,7 +91,7 @@
      b) pstat_getprocvm() can be used to find out about the virtual memory
         areas.
      Both methods agree, except that the value of get_rusage_as_via_iterator()
-     is slighly larger higher than get_rusage_as_via_setrlimit(), by 4 KB in
+     is slightly larger higher than get_rusage_as_via_setrlimit(), by 4 KB in
      32-bit mode and by 40 KB in 64-bit mode.
 
    IRIX:
--- a/lib/mountlist.h	Sat Jan 12 09:50:10 2019 +0100
+++ b/lib/mountlist.h	Sat Jan 12 15:17:09 2019 +0100
@@ -32,7 +32,7 @@
   char *me_type;                /* "nfs", "4.2", etc. */
   dev_t me_dev;                 /* Device number of me_mountdir. */
   unsigned int me_dummy : 1;    /* Nonzero for dummy file systems. */
-  unsigned int me_remote : 1;   /* Nonzero for remote fileystems. */
+  unsigned int me_remote : 1;   /* Nonzero for remote file systems. */
   unsigned int me_type_malloced : 1; /* Nonzero if me_type was malloced. */
   struct mount_entry *me_next;
 };
--- a/lib/regexec.c	Sat Jan 12 09:50:10 2019 +0100
+++ b/lib/regexec.c	Sat Jan 12 15:17:09 2019 +0100
@@ -2207,7 +2207,7 @@
 			    dfa->nexts[node_idx]))
     /* The node can't accept the "multi byte", or the
        destination was already thrown away, then the node
-       could't accept the current input "multi byte".   */
+       couldn't accept the current input "multi byte".   */
     naccepted = 0;
   /* Otherwise, it is sure that the node could accept
      'naccepted' bytes input.  */
--- a/lib/strptime.c	Sat Jan 12 09:50:10 2019 +0100
+++ b/lib/strptime.c	Sat Jan 12 15:17:09 2019 +0100
@@ -277,7 +277,7 @@
         }
 
       /* Any character but '%' must be matched by the same character
-         in the iput string.  */
+         in the input string.  */
       if (*fmt != '%')
         {
           match_char (*fmt++, *rp++);
--- a/lib/trigl.c	Sat Jan 12 09:50:10 2019 +0100
+++ b/lib/trigl.c	Sat Jan 12 15:17:09 2019 +0100
@@ -325,7 +325,7 @@
  *                      z    = (z-x[i])*2**24
  *
  *
- *      y[]     ouput result in an array of double precision numbers.
+ *      y[]     output result in an array of double precision numbers.
  *              The dimension of y[] is:
  *                      24-bit  precision       1
  *                      53-bit  precision       2
--- a/lib/vma-iter.c	Sat Jan 12 09:50:10 2019 +0100
+++ b/lib/vma-iter.c	Sat Jan 12 15:17:09 2019 +0100
@@ -125,7 +125,7 @@
      - On all platforms, if some other thread is doing memory allocations or
        deallocations between two read() calls, there is a high risk that the
        result of these two read() calls don't fit together, and as a
-       consequence we will parse gargage and either omit some VMAs or return
+       consequence we will parse garbage and either omit some VMAs or return
        VMAs with nonsensical addresses.
    So use mmap(), and ignore the resulting VMA.  */
 
--- a/pygnulib/GLError.py	Sat Jan 12 09:50:10 2019 +0100
+++ b/pygnulib/GLError.py	Sat Jan 12 15:17:09 2019 +0100
@@ -62,7 +62,7 @@
           9: missing libname argument
          10: conddeps are not supported with inctests
          11: incompatible licenses on modules: <modules>
-         12: cannot process empy filelist
+         12: cannot process empty filelist
          13: cannot create the given directory: <directory>
          14: cannot delete the given file: <file>
          15: cannot create the given file: <file>
@@ -71,7 +71,7 @@
          18: module lacks a license: <module>
          19: could not create destination directory: <directory>
         errinfo: additional information;
-        style: 0 or 1, wheter old-style'''
+        style: 0 or 1, whether old-style'''
         self.errno = errno
         self.errinfo = errinfo
         self.args = (self.errno, self.errinfo)
@@ -97,7 +97,7 @@
                 + " so you might have to set this argument",
                 "conddeps are not supported with inctests",
                 "incompatible licenses on modules: %s" % repr(errinfo),
-                "cannot process empy filelist",
+                "cannot process empty filelist",
                 "cannot create the given directory: %s" % repr(errinfo),
                 "cannot remove the given file: %s" % repr(errinfo),
                 "cannot create the given file: %s" % repr(errinfo),
--- a/pygnulib/constants.py	Sat Jan 12 09:50:10 2019 +0100
+++ b/pygnulib/constants.py	Sat Jan 12 15:17:09 2019 +0100
@@ -54,7 +54,7 @@
 #===============================================================================
 # Define global constants
 #===============================================================================
-# Declare neccessary variables
+# Declare necessary variables
 APP = dict()  # Application
 DIRS = dict()  # Directories
 UTILS = dict()  # Utilities