diff options
author | Kenichi Handa <[email protected]> | 1999-12-15 00:20:26 +0000 |
---|---|---|
committer | Kenichi Handa <[email protected]> | 1999-12-15 00:20:26 +0000 |
commit | daaa6ed868b751a019395c7233c9649e099cca85 (patch) | |
tree | 82a55e79a3df4ba3494358721dd32dbb1580667e /src/search.c | |
parent | e0016554c451b6e68b97c7949f4d6e7c03869ee0 (diff) |
(search_buffer): Adjusted for the change of CHAR_STRING.
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/search.c b/src/search.c index df7b825edc..7fb3a78666 100644 --- a/src/search.c +++ b/src/search.c @@ -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. */ |