diff options
| author | Kenichi Handa | 1999-12-15 00:20:26 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1999-12-15 00:20:26 +0000 |
| commit | daaa6ed868b751a019395c7233c9649e099cca85 (patch) | |
| tree | 82a55e79a3df4ba3494358721dd32dbb1580667e /src | |
| parent | e0016554c451b6e68b97c7949f4d6e7c03869ee0 (diff) | |
| download | emacs-daaa6ed868b751a019395c7233c9649e099cca85.tar.gz emacs-daaa6ed868b751a019395c7233c9649e099cca85.zip | |
(search_buffer): Adjusted for the change of CHAR_STRING.
Diffstat (limited to 'src')
| -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 df7b825edcb..7fb3a78666f 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -1188,7 +1188,7 @@ search_buffer (string, pos, pos_byte, lim, lim_byte, n, | |||
| 1188 | { | 1188 | { |
| 1189 | while (--len >= 0) | 1189 | while (--len >= 0) |
| 1190 | { | 1190 | { |
| 1191 | unsigned char workbuf[4], *str; | 1191 | unsigned char str[MAX_MULTIBYTE_LENGTH]; |
| 1192 | int c, translated, inverse; | 1192 | int c, translated, inverse; |
| 1193 | int in_charlen, charlen; | 1193 | int in_charlen, charlen; |
| 1194 | 1194 | ||
| @@ -1208,11 +1208,11 @@ search_buffer (string, pos, pos_byte, lim, lim_byte, n, | |||
| 1208 | TRANSLATE (translated, trt, c); | 1208 | TRANSLATE (translated, trt, c); |
| 1209 | /* If translation changed the byte-length, go back | 1209 | /* If translation changed the byte-length, go back |
| 1210 | to the original character. */ | 1210 | to the original character. */ |
| 1211 | charlen = CHAR_STRING (translated, workbuf, str); | 1211 | charlen = CHAR_STRING (translated, str); |
| 1212 | if (in_charlen != charlen) | 1212 | if (in_charlen != charlen) |
| 1213 | { | 1213 | { |
| 1214 | translated = c; | 1214 | translated = c; |
| 1215 | charlen = CHAR_STRING (c, workbuf, str); | 1215 | charlen = CHAR_STRING (c, str); |
| 1216 | } | 1216 | } |
| 1217 | 1217 | ||
| 1218 | /* If we are searching for something strange, | 1218 | /* If we are searching for something strange, |
| @@ -1238,8 +1238,6 @@ search_buffer (string, pos, pos_byte, lim, lim_byte, n, | |||
| 1238 | /* If two different rows appear, needing translation, | 1238 | /* If two different rows appear, needing translation, |
| 1239 | then we cannot use boyer_moore search. */ | 1239 | then we cannot use boyer_moore search. */ |
| 1240 | boyer_moore_ok = 0; | 1240 | boyer_moore_ok = 0; |
| 1241 | /* ??? Handa: this must do boyer_moore_ok = 0 | ||
| 1242 | if c is a composite character. */ | ||
| 1243 | } | 1241 | } |
| 1244 | 1242 | ||
| 1245 | /* Store this character into the translated pattern. */ | 1243 | /* Store this character into the translated pattern. */ |