(re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P' in UTF-2000.
authortomo <tomo>
Mon, 30 Aug 1999 17:34:01 +0000 (17:34 +0000)
committertomo <tomo>
Mon, 30 Aug 1999 17:34:01 +0000 (17:34 +0000)
src/regex.c

index d7618d1..375cdcf 100644 (file)
@@ -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++)