From cdefddb402c18d8a40511cf77f7fb8c7dba1237d Mon Sep 17 00:00:00 2001 From: tomo Date: Sat, 6 Jul 2002 07:38:35 +0000 Subject: [PATCH] (decode_defined_char): Renamed from `DECODE_DEFINED_CHAR'; changed to normal function. (DECODE_CHAR): Use `decode_defined_char' instead of `DECODE_DEFINED_CHAR'. --- src/char-ucs.h | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/src/char-ucs.h b/src/char-ucs.h index f3e433c..b516033 100644 --- a/src/char-ucs.h +++ b/src/char-ucs.h @@ -673,40 +673,13 @@ decoding_table_remove_char (Lisp_Object ccs, int code_point) Emchar load_char_decoding_entry_maybe (Lisp_Object ccs, int code_point); #endif -INLINE_HEADER Emchar -DECODE_DEFINED_CHAR (Lisp_Object charset, int code_point); -INLINE_HEADER Emchar -DECODE_DEFINED_CHAR (Lisp_Object ccs, int code_point) -{ - int dim = XCHARSET_DIMENSION (ccs); - Lisp_Object decoding_table = XCHARSET_DECODING_TABLE (ccs); - - while (dim > 0) - { - dim--; - decoding_table - = get_ccs_octet_table (decoding_table, ccs, - (code_point >> (dim * 8)) & 255); - } - if (CHARP (decoding_table)) - return XCHAR (decoding_table); -#ifdef HAVE_DATABASE - if (EQ (decoding_table, Qunloaded) || - EQ (decoding_table, Qunbound) || - NILP (decoding_table) ) - { - return load_char_decoding_entry_maybe (ccs, code_point); - } -#endif - else - return -1; -} +Emchar decode_defined_char (Lisp_Object charset, int code_point); INLINE_HEADER Emchar DECODE_CHAR (Lisp_Object charset, int code_point); INLINE_HEADER Emchar DECODE_CHAR (Lisp_Object charset, int code_point) { - Emchar char_id = DECODE_DEFINED_CHAR (charset, code_point); + Emchar char_id = decode_defined_char (charset, code_point); if (char_id >= 0) return char_id; -- 1.7.10.4