From a8382af43a39aa1e442861240506559157921288 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 27 May 1998 09:31:53 +0000 Subject: *** empty log message *** git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- regex.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'regex.c') diff --git a/regex.c b/regex.c index a7a158e1fd..071703ca0a 100644 --- a/regex.c +++ b/regex.c @@ -1633,7 +1633,7 @@ re_compile_pattern(pattern, size, bufp) || *laststart == start_paren || (*laststart == exactn && (laststart[1] == 1 - || laststart[1] == 2 && ismbchar(laststart[2]))) + || (laststart[1] == 2 && ismbchar(laststart[2])))) || *laststart == duplicate)) { /* Posix extended syntax is handled in previous @@ -1958,9 +1958,6 @@ re_compile_pattern(pattern, size, bufp) bufp->must = calculate_must_string(bufp->buffer, b); FREE_AND_RETURN(stackb, 0); - invalid_char: - FREE_AND_RETURN(stackb, "invalid character in regular expression"); - invalid_pattern: FREE_AND_RETURN(stackb, "invalid regular expression"); @@ -2502,7 +2499,6 @@ re_search(bufp, string, size, startpos, range, regs) { register char *fastmap = bufp->fastmap; int val, anchor = 0; - int options = bufp->options; /* Check for out-of-range starting position. */ if (startpos < 0 || startpos > size) -- cgit v1.2.3