changeset 26840:141799992598

(CATEGORY_SET): Delete codes for a composite character.
author Kenichi Handa <handa@m17n.org>
date Wed, 15 Dec 1999 00:02:55 +0000
parents 97029667b1a9
children dfead1ef574c
files src/category.h
diffstat 1 files changed, 3 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/category.h	Wed Dec 15 00:02:33 1999 +0000
+++ b/src/category.h	Wed Dec 15 00:02:55 1999 +0000
@@ -104,17 +104,11 @@
 	      && NILP (temp = XCHAR_TABLE (table)->defalt))		     \
 	 table = XCHAR_TABLE (table)->parent;				     \
      else								     \
-       temp = Faref (table,						     \
-		     make_number (COMPOSITE_CHAR_P (c)			     \
-				  ? cmpchar_component ((c), 0, 1) : (c)));   \
+       temp = Faref (table, make_number (c));				     \
      temp; })
 #else
-#define CATEGORY_SET(c)							     \
-  ((c) < CHAR_TABLE_SINGLE_BYTE_SLOTS					     \
-   ? Faref (current_buffer->category_table, make_number ((unsigned char) c)) \
-   : Faref (current_buffer->category_table,				     \
-	    make_number (COMPOSITE_CHAR_P (c)				     \
-			 ? cmpchar_component ((c), 0, 1) : (c))))
+#define CATEGORY_SET(c) \
+  Faref (current_buffer->category_table, make_number (c))
 #endif   
 
 /* Return the doc string of CATEGORY in category table TABLE.  */