changeset 26869:cb8fbc50812f

(search_buffer): Adjusted for the change of CHAR_STRING.
author Kenichi Handa <handa@m17n.org>
date Wed, 15 Dec 1999 00:20:26 +0000
parents edeeffd7d8c7
children 9ecd0716cf8a
files src/search.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/search.c	Wed Dec 15 00:17:54 1999 +0000
+++ b/src/search.c	Wed Dec 15 00:20:26 1999 +0000
@@ -1188,7 +1188,7 @@
 	{
 	  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 @@
 	      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 @@
 		    /* 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.  */