]> git.eshelyaron.com Git - emacs.git/commitdiff
(re_error_msgid): Add an entry for REG_ERANGEX.
authorKenichi Handa <handa@m17n.org>
Sun, 24 Oct 2004 03:56:51 +0000 (03:56 +0000)
committerKenichi Handa <handa@m17n.org>
Sun, 24 Oct 2004 03:56:51 +0000 (03:56 +0000)
(regex_compile): Return REG_ERANGEX if appropriate.

src/regex.c

index 31a10ee92e00569347d22bd522a88dc59b494901..36787238a32e1635a9343146955808112df6ae60 100644 (file)
@@ -1283,6 +1283,7 @@ static const char *re_error_msgid[] =
     gettext_noop ("Premature end of regular expression"), /* REG_EEND */
     gettext_noop ("Regular expression too big"), /* REG_ESIZE */
     gettext_noop ("Unmatched ) or \\)"), /* REG_ERPAREN */
+    gettext_noop ("Range striding over charsets") /* REG_ERANGEX  */
   };
 \f
 /* Avoiding alloca during matching, to placate r_alloc.  */
@@ -2871,7 +2872,7 @@ regex_compile (pattern, size, syntax, bufp)
                          }
                      }
                    else if (!SAME_CHARSET_P (c, c1))
-                     FREE_STACK_RETURN (REG_ERANGE);
+                     FREE_STACK_RETURN (REG_ERANGEX);
                  }
                else
                  /* Range from C to C. */