Mercurial > emacs
diff src/regex.c @ 57665:b8ccc605c96d
(re_error_msgid): Add an entry for REG_ERANGEX.
(regex_compile): Return REG_ERANGEX if appropriate.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Sun, 24 Oct 2004 03:56:51 +0000 |
| parents | 10b16f7f1a51 |
| children | d82983edcbe6 0fe073a08cef |
line wrap: on
line diff
--- a/src/regex.c Sun Oct 24 00:25:21 2004 +0000 +++ b/src/regex.c Sun Oct 24 03:56:51 2004 +0000 @@ -1283,6 +1283,7 @@ 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 */ }; /* Avoiding alloca during matching, to placate r_alloc. */ @@ -2871,7 +2872,7 @@ } } else if (!SAME_CHARSET_P (c, c1)) - FREE_STACK_RETURN (REG_ERANGE); + FREE_STACK_RETURN (REG_ERANGEX); } else /* Range from C to C. */
