]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
regex: Fix spelling in comments.
authorArnold Robbins <arnold@skeeve.com>
Wed, 20 Dec 2017 03:26:08 +0000 (19:26 -0800)
committerCarlos O'Donell <carlos@redhat.com>
Wed, 20 Dec 2017 03:28:21 +0000 (19:28 -0800)
Fix the spelling in various comments throughout the
regex implementation. These changes are also present
in gnulib and will be integrated there also, see:
https://sourceware.org/ml/libc-alpha/2017-12/msg00688.html

ChangeLog
posix/regcomp.c
posix/regex.h
posix/regex_internal.c
posix/regexec.c

index bb262127a7db8d06d143f7d62edf1ed812ae187d..982798c8c3fb52165bd8697e221ad34e84eadb94 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
+
+       * posix/regcomp.c: Fix spelling in comments.
+       * posix/regex.h: Likewise.
+       * posix/regex_internal.c: Likewise.
+       * posix/regexec.c: Likewise.
+
 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
 
        [BZ #22377]
index 81c29329911ab4e985dfe10493cfe905f5c2f8bb..6bc41028e9ae0c427829c31b4c0b7e53ea64109d 100644 (file)
@@ -3433,7 +3433,7 @@ build_equiv_class (bitset_t sbcset, const unsigned char *name)
        /* This isn't a valid character.  */
        return REG_ECOLLATE;
 
-      /* Build single byte matcing table for this equivalence class.  */
+      /* Build single byte matching table for this equivalence class.  */
       len = weights[idx1 & 0xffffff];
       for (ch = 0; ch < SBC_MAX; ++ch)
        {
index 3f0d6ce2341c65ce9a8f9359dca2fd7c85c56412..0074b8a8e465b6eed30d7569421e9294c2da08c1 100644 (file)
@@ -317,7 +317,7 @@ typedef enum
   /* POSIX regcomp return error codes.  (In the order listed in the
      standard.)  */
   REG_BADPAT,          /* Invalid pattern.  */
-  REG_ECOLLATE,                /* Inalid collating element.  */
+  REG_ECOLLATE,                /* Invalid collating element.  */
   REG_ECTYPE,          /* Invalid character class name.  */
   REG_EESCAPE,         /* Trailing backslash.  */
   REG_ESUBREG,         /* Invalid back reference.  */
index 111231c198b6c6d099b39b0e2ff219439d9d65f9..a97f703bc7e5c8918b7b8bc882f9342cc8f8f5e9 100644 (file)
@@ -1594,7 +1594,7 @@ free_state (re_dfastate_t *state)
   re_free (state);
 }
 
-/* Create the new state which is independ of contexts.
+/* Create the new state which is independent of contexts.
    Return the new state if succeeded, otherwise return NULL.  */
 
 static re_dfastate_t *
index a96d86d431796cdedeac5807d4cbf580f4d4cad8..95e31d3f80707e3d896209679bcbff31fad0041c 100644 (file)
@@ -266,7 +266,7 @@ compat_symbol (libc, __compat_regexec, regexec, GLIBC_2_0);
    concerned.
 
    If REGS is not NULL, and BUFP->no_sub is not set, the offsets of the match
-   and all groups is stroed in REGS.  (For the "_2" variants, the offsets are
+   and all groups is stored in REGS.  (For the "_2" variants, the offsets are
    computed relative to the concatenation, not relative to the individual
    strings.)
 
@@ -568,7 +568,7 @@ re_exec (const char *s)
 
 /* Searches for a compiled pattern PREG in the string STRING, whose
    length is LENGTH.  NMATCH, PMATCH, and EFLAGS have the same
-   mingings with regexec.  START, and RANGE have the same meanings
+   meaning as with regexec.  START, and RANGE have the same meanings
    with re_search.
    Return REG_NOERROR if we find a match, and REG_NOMATCH if not,
    otherwise return the error code.
@@ -849,7 +849,7 @@ re_search_internal (const regex_t *preg, const char *string, int length,
            goto free_return;
        }
 
-      /* At last, add the offset to the each registers, since we slided
+      /* At last, add the offset to each register, since we slid
         the buffers so that we could assume that the matching starts
         from 0.  */
       for (reg_idx = 0; reg_idx < nmatch; ++reg_idx)
@@ -2365,7 +2365,7 @@ find_recover_state (reg_errcode_t *err, re_match_context_t *mctx)
 /* From the node set CUR_NODES, pick up the nodes whose types are
    OP_OPEN_SUBEXP and which have corresponding back references in the regular
    expression. And register them to use them later for evaluating the
-   correspoding back references.  */
+   corresponding back references.  */
 
 static reg_errcode_t
 check_subexp_matching_top (re_match_context_t *mctx, re_node_set *cur_nodes,