(charset_by_leading_byte): Use `NUM_LEADING_BYTES' instead of 128.
authortomo <tomo>
Thu, 26 Aug 1999 05:35:35 +0000 (05:35 +0000)
committertomo <tomo>
Thu, 26 Aug 1999 05:35:35 +0000 (05:35 +0000)
(make_charset): Use `MIN_LEADING_BYTE' instead of 128.

src/mule-charset.c

index 4fa9fcd..3bb0967 100644 (file)
@@ -75,7 +75,7 @@ static int composite_char_col_next;
 #endif /* ENABLE_COMPOSITE_CHARS */
 
 /* Table of charsets indexed by leading byte. */
-Lisp_Object charset_by_leading_byte[128];
+Lisp_Object charset_by_leading_byte[NUM_LEADING_BYTES];
 
 /* Table of charsets indexed by type/final-byte/direction. */
 Lisp_Object charset_by_attributes[4][128][2];
@@ -492,8 +492,8 @@ make_charset (int id, Lisp_Object name, unsigned char rep_bytes,
       charset_by_attributes[type][final][direction] = obj;
     }
 
-  assert (NILP (charset_by_leading_byte[id - 128]));
-  charset_by_leading_byte[id - 128] = obj;
+  assert (NILP (charset_by_leading_byte[id - MIN_LEADING_BYTE]));
+  charset_by_leading_byte[id - MIN_LEADING_BYTE] = obj;
   if (id < 0xA0)
     /* official leading byte */
     rep_bytes_by_first_byte[id] = rep_bytes;