bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] maint: fix typos in comments and ChangeLog


From: Jim Meyering
Subject: [PATCH] maint: fix typos in comments and ChangeLog
Date: Tue, 29 May 2012 13:48:35 +0200

FYI,
(Yes, this changes lib/regexec.c, whose master is now presumably
in glibc.  It's obviously ok if this change is later clobbered. )

>From 77cef2022004c4066e805da09a83b2c77f17bdd3 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Tue, 29 May 2012 13:45:10 +0200
Subject: [PATCH] maint: fix typos in comments and ChangeLog

Culprits identified and fixed mostly automatically using these commands:
git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
using http://github.com/lyda/misspell-check
* ChangeLog: Fix typos.
* doc/solaris-versions: Likewise.
* lib/regexec.c (re_search_stub): Likewise.
* m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
---
 ChangeLog            | 28 ++++++++++++++++++++--------
 doc/solaris-versions |  2 +-
 lib/regexec.c        |  2 +-
 m4/mmap-anon.m4      |  8 ++++----
 4 files changed, 26 insertions(+), 14 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 647c832..1fb9e3e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2012-05-29  Jim Meyering  <address@hidden>
+
+       maint: fix typos in comments and ChangeLog
+       Culprits identified and fixed mostly automatically using these commands:
+       git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
+       's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
+       using http://github.com/lyda/misspell-check
+       * ChangeLog: Fix typos.
+       * doc/solaris-versions: Likewise.
+       * lib/regexec.c (re_search_stub): Likewise.
+       * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
+
 2012-05-27  Paul Eggert  <address@hidden>

        manywarnings: remove duplicate -Wmultichar entry
@@ -21590,7 +21602,7 @@
        behavior match Linux.
        * tests/test-c-stack.c (main): Prefer NULL for pointers.

-       stdbool-tests: accomodate Haiku
+       stdbool-tests: accommodate Haiku
        * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.

        binary-io: fix O_TEXT on Haiku
@@ -26043,7 +26055,7 @@
        * tests/test-sys_wait.c (main): Relax test.
        * tests/test-stdlib.c (main): Likewise.

-       init.sh: accomodate directory with no .exes
+       init.sh: accommodate directory with no .exes
        * tests/init.sh: Accomodate directory containing only scripts.

        tests: avoid compiler warning
@@ -39159,7 +39171,7 @@

 2009-11-14  John W. Eaton  <address@hidden>

-       strftime.h: wrap funtion declaration in extern "C" block
+       strftime.h: wrap function declaration in extern "C" block
        * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.

 2009-11-13  Eric Blake  <address@hidden>
@@ -41906,7 +41918,7 @@
        reversed sense of yes and no in prior patch.  Avoid confusing
        compilation failure with desired semantics.

-       link-follow: accomodate mingw and cross-compilation
+       link-follow: accommodate mingw and cross-compilation
        * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
        (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
        cross-compilation results to -1, to make linkat easier to
@@ -46919,7 +46931,7 @@

        test-getaddrinfo: fix usage of skip return code 77
        * tests/test-gettaddrinfo.c: Return skip code 77 only
-       for first occurance of skip (4x77 is not 77)
+       for first occurrence of skip (4x77 is not 77)

 2009-02-25  Gary V. Vaughan  <address@hidden>

@@ -59373,7 +59385,7 @@
 2007-12-01  Eric Blake  <address@hidden>

        * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
-       accomodate fix in cygwin 1.5.25.
+       accommodate fix in cygwin 1.5.25.

 2007-12-01  Jim Meyering  <address@hidden>

@@ -67350,7 +67362,7 @@
        (SIZE): New macro.
        (FUNC): Compare only SIZE bytes of the value.
        * lib/vasnprintf.c: Include float+.h.
-       (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
+       (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
        SIZEOF_LDBL or SIZEOF_DBL bytes.
        * modules/isnan-nolibm (Files): Add lib/float+.h.
        * modules/isnanl-nolibm (Files): Add lib/float+.h.
@@ -83753,7 +83765,7 @@
        (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
        not being INT_MAX.
        (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
-       Use pc_rels_seen to decide whther a date is absolute.
+       Use pc_rels_seen to decide whether a date is absolute.

        * lib/getdate.y (number): Don't overwrite year.
        (get_date): Initialize pc.year.digits to 0, not 4, to enable above
diff --git a/doc/solaris-versions b/doc/solaris-versions
index 8fb3f25..dd391b1 100644
--- a/doc/solaris-versions
+++ b/doc/solaris-versions
@@ -22,7 +22,7 @@ Starting with 4.1.1B of SunOS we have the 'Solaris 1.0' 
release.
        SunOS 4.1.3_U1B == Solaris 1.1.1B
        SunOS 4.1.4     == Solaris 1.1.2

-The SunOS 5.x uname output maps to the Solaris 2.x numbers thru 2.6
+The SunOS 5.x uname output maps to the Solaris 2.x numbers through 2.6

        SunOS 5.0       == Solaris 2.0
        SunOS 5.1       == Solaris 2.1
diff --git a/lib/regexec.c b/lib/regexec.c
index 92efb44..7d130a0 100644
--- a/lib/regexec.c
+++ b/lib/regexec.c
@@ -473,7 +473,7 @@ re_search_stub (struct re_pattern_buffer *bufp,

   rval = 0;

-  /* I hope we needn't fill ther regs with -1's when no match was found.  */
+  /* I hope we needn't fill their regs with -1's when no match was found.  */
   if (result != REG_NOERROR)
     rval = result == REG_NOMATCH ? -1 : -2;
   else if (regs != NULL)
diff --git a/m4/mmap-anon.m4 b/m4/mmap-anon.m4
index 4613cbe..579323f 100644
--- a/m4/mmap-anon.m4
+++ b/m4/mmap-anon.m4
@@ -27,18 +27,18 @@ AC_DEFUN([gl_FUNC_MMAP_ANON],
   gl_have_mmap_anonymous=no
   if test $gl_have_mmap = yes; then
     AC_MSG_CHECKING([for MAP_ANONYMOUS])
-    AC_EGREP_CPP([I cant identify this map], [
+    AC_EGREP_CPP([I cannot identify this map], [
 #include <sys/mman.h>
 #ifdef MAP_ANONYMOUS
-    I cant identify this map
+    I cannot identify this map
 #endif
 ],
       [gl_have_mmap_anonymous=yes])
     if test $gl_have_mmap_anonymous != yes; then
-      AC_EGREP_CPP([I cant identify this map], [
+      AC_EGREP_CPP([I cannot identify this map], [
 #include <sys/mman.h>
 #ifdef MAP_ANON
-    I cant identify this map
+    I cannot identify this map
 #endif
 ],
         [AC_DEFINE([MAP_ANONYMOUS], [MAP_ANON],
-- 
1.7.10.2.605.gbefc5ed



reply via email to

[Prev in Thread] Current Thread [Next in Thread]