From b2e5582d123271918f37668abc5423f14d613c58 Mon Sep 17 00:00:00 2001 From: tomo Date: Mon, 30 Aug 1999 17:34:01 +0000 Subject: [PATCH] (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P' in UTF-2000. --- src/regex.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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++) -- 1.7.10.4