From: Kenichi Handa Date: Sun, 24 Oct 2004 03:56:51 +0000 (+0000) Subject: (re_error_msgid): Add an entry for REG_ERANGEX. X-Git-Tag: ttn-vms-21-2-B4~4428 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b3e4c897957b01ff96f057127851c6b6cdf29c4a;p=emacs.git (re_error_msgid): Add an entry for REG_ERANGEX. (regex_compile): Return REG_ERANGEX if appropriate. --- diff --git a/src/regex.c b/src/regex.c index 31a10ee92e0..36787238a32 100644 --- a/src/regex.c +++ b/src/regex.c @@ -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 */ }; /* 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. */