]> git.eshelyaron.com Git - emacs.git/commitdiff
(search_buffer): Adjusted for the change of CHAR_STRING.
authorKenichi Handa <handa@m17n.org>
Wed, 15 Dec 1999 00:20:26 +0000 (00:20 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 15 Dec 1999 00:20:26 +0000 (00:20 +0000)
src/search.c

index df7b825edcbe4c0910ef19be41d765fd9e0999ca..7fb3a78666fbb1fa7a807978c552e0b7cef8cee3 100644 (file)
@@ -1188,7 +1188,7 @@ search_buffer (string, pos, pos_byte, lim, lim_byte, n,
        {
          while (--len >= 0)
            {
-             unsigned char workbuf[4], *str;
+             unsigned char str[MAX_MULTIBYTE_LENGTH];
              int c, translated, inverse;
              int in_charlen, charlen;
 
@@ -1208,11 +1208,11 @@ search_buffer (string, pos, pos_byte, lim, lim_byte, n,
              TRANSLATE (translated, trt, c);
              /* If translation changed the byte-length, go back
                 to the original character.  */
-             charlen = CHAR_STRING (translated, workbuf, str);
+             charlen = CHAR_STRING (translated, str);
              if (in_charlen != charlen)
                {
                  translated = c;
-                 charlen = CHAR_STRING (c, workbuf, str);
+                 charlen = CHAR_STRING (c, str);
                }
 
              /* If we are searching for something strange,
@@ -1238,8 +1238,6 @@ search_buffer (string, pos, pos_byte, lim, lim_byte, n,
                    /* If two different rows appear, needing translation,
                       then we cannot use boyer_moore search.  */
                    boyer_moore_ok = 0;
-                   /* ??? Handa: this must do boyer_moore_ok = 0
-                      if c is a composite character.  */
                }
 
              /* Store this character into the translated pattern.  */