From: "K.Kosako" Date: 2002-01-05T10:30:52+09:00 Subject: [ruby-dev:15635] regex.c (re_compile_pattern): remove unnecessary statements. bufp->stclassによる高速化(?)を止めたので、 以下の部分全体が不要です。 regex.c (re_compile_pattern): remove unnecessary statements. --- regex.c.orig Fri Jan 4 23:14:35 2002 +++ regex.c Sat Jan 5 10:22:38 2002 @@ -2377,19 +2377,6 @@ re_compile_pattern(pattern, size, bufp) if (*laststart == anychar_repeat) { bufp->options |= RE_OPTIMIZE_ANCHOR; } - else if (*laststart == on_failure_jump) { - int mcnt; - - laststart++; - EXTRACT_NUMBER_AND_INCR(mcnt, laststart); - if (*laststart == charset || *laststart == charset_not) { - p0 = laststart; - mcnt = *++p0; - p0 += mcnt+1; - mcnt = EXTRACT_UNSIGNED_AND_INCR(p0); - p0 += 8*mcnt; - } - } } bufp->used = b - bufp->buffer; -- 小迫@ソフネック 渋谷区恵比寿1-15-1