X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fchartab.h;h=778186be889937b649144ce417239c2dc94e33fb;hb=aa982acf01b4e35675a624d78c9e5ee109c1203e;hp=b5abc3e45f32f2f701a67ac99308a4c43b166f76;hpb=68995e1711ad6fce6ef6c4f4f210335698f0da0c;p=chise%2Fxemacs-chise.git diff --git a/src/chartab.h b/src/chartab.h index b5abc3e..778186b 100644 --- a/src/chartab.h +++ b/src/chartab.h @@ -1,7 +1,7 @@ /* Declarations having to do with Mule char tables. Copyright (C) 1992 Free Software Foundation, Inc. Copyright (C) 1995 Sun Microsystems, Inc. - Copyright (C) 1999,2000,2001 MORIOKA Tomohiko + Copyright (C) 1999,2000,2001,2002 MORIOKA Tomohiko This file is part of XEmacs. @@ -31,6 +31,14 @@ Boston, MA 02111-1307, USA. */ #ifdef UTF2000 +EXFUN (Fmake_char, 3); +EXFUN (Fdecode_char, 3); + +EXFUN (Fput_char_attribute, 3); + +EXFUN (Ffind_char, 1); + + /************************************************************************/ /* Char-ID Tables */ /************************************************************************/ @@ -308,7 +316,23 @@ extern Lisp_Object Vall_syntax_tables; #ifdef UTF2000 -Lisp_Object get_char_id_table (Lisp_Char_Table* cit, Emchar ch); +INLINE_HEADER Lisp_Object get_char_id_table (Lisp_Char_Table* cit, Emchar ch); +INLINE_HEADER Lisp_Object +get_char_id_table (Lisp_Char_Table* cit, Emchar ch) +{ + Lisp_Object val = get_byte_table (get_byte_table + (get_byte_table + (get_byte_table + (cit->table, + (unsigned char)(ch >> 24)), + (unsigned char) (ch >> 16)), + (unsigned char) (ch >> 8)), + (unsigned char) ch); + if (UNBOUNDP (val)) + return cit->default_value; + else + return val; +} INLINE_HEADER void put_char_id_table_0 (Lisp_Char_Table* cit, Emchar code, Lisp_Object value); @@ -352,7 +376,7 @@ EXFUN (Fget_char_attribute, 3); #ifdef MULE int check_category_char(Emchar ch, Lisp_Object ctbl, - unsigned int designator, unsigned int not); + unsigned int designator, unsigned int not_p); extern Lisp_Object Vstandard_category_table;