From: tomo Date: Mon, 30 Aug 1999 17:34:01 +0000 (+0000) Subject: (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P' in UTF-2000. X-Git-Tag: r21-2-19-utf-2000-0_5-0~22 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2e5582d123271918f37668abc5423f14d613c58;p=chise%2Fxemacs-chise.git (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P' in UTF-2000. --- diff --git a/src/regex.c b/src/regex.c index d7618d1..375cdcf 100644 --- a/src/regex.c +++ b/src/regex.c @@ -3605,11 +3605,13 @@ re_compile_fastmap (struct re_pattern_buffer *bufp) fastmap[j] = 1; for (j = 0x80; j < 0xA0; j++) { +#ifndef UTF2000 if (LEADING_BYTE_PREFIX_P(j)) /* too complicated to calculate this right */ fastmap[j] = 1; else { +#endif int multi_p; Lisp_Object cset; @@ -3621,7 +3623,9 @@ re_compile_fastmap (struct re_pattern_buffer *bufp) == Sword || multi_p) fastmap[j] = 1; } +#ifndef UTF2000 } +#endif } #else /* ! MULE */ for (j = 0; j < (1 << BYTEWIDTH); j++) @@ -3646,11 +3650,13 @@ re_compile_fastmap (struct re_pattern_buffer *bufp) fastmap[j] = 1; for (j = 0x80; j < 0xA0; j++) { +#ifndef UTF2000 if (LEADING_BYTE_PREFIX_P(j)) /* too complicated to calculate this right */ fastmap[j] = 1; else { +#endif int multi_p; Lisp_Object cset; @@ -3662,7 +3668,9 @@ re_compile_fastmap (struct re_pattern_buffer *bufp) != Sword || multi_p) fastmap[j] = 1; } +#ifndef UTF2000 } +#endif } #else /* ! MULE */ for (j = 0; j < (1 << BYTEWIDTH); j++)