changeset 99980:0a43374c0145

(fontset_add): Adjusted for the change of char_table_ref_and_range. (fontset_get_font_group): Likewise. (Ffontset_info): Likewise.
author Kenichi Handa <handa@m17n.org>
date Thu, 27 Nov 2008 08:01:45 +0000
parents a33d93f0c185
children ec7ddeda2233
files src/fontset.c
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/fontset.c	Thu Nov 27 08:01:29 2008 +0000
+++ b/src/fontset.c	Thu Nov 27 08:01:45 2008 +0000
@@ -352,9 +352,8 @@
       int from1, to1;
 
       do {
+	from1 = from, to1 = to;
 	args[idx] = char_table_ref_and_range (fontset, from, &from1, &to1);
-	if (to < to1)
-	  to1 = to;
 	char_table_set_range (fontset, from, to1,
 			      NILP (args[idx]) ? args[1 - idx]
 			      : Fvconcat (2, args));
@@ -460,7 +459,7 @@
 {
   Lisp_Object font_group;
   Lisp_Object base_fontset;
-  int from, to, i;
+  int from = 0, to = MAX_CHAR, i;
 
   xassert (! BASE_FONTSET_P (fontset));
   if (c >= 0)
@@ -1857,13 +1856,11 @@
     {
       for (c = 0; c <= MAX_CHAR; )
 	{
-	  int from, to;
+	  int from = c, to = MAX_5_BYTE_CHAR;
 
 	  if (c <= MAX_5_BYTE_CHAR)
 	    {
 	      val = char_table_ref_and_range (fontsets[k], c, &from, &to);
-	      if (to > MAX_5_BYTE_CHAR)
-		to = MAX_5_BYTE_CHAR;
 	    }
 	  else
 	    {