From: tomo Date: Fri, 10 Sep 1999 08:32:28 +0000 (+0000) Subject: (struct Lisp_Charset): Delete `rep_bytes'; add `encoding_table' and X-Git-Tag: r21-2-19-utf-2000-0_7-0~60 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=87e60363298b4e5edb9ce1db68ec53951eb66f12;p=chise%2Fxemacs-chise.git.1 (struct Lisp_Charset): Delete `rep_bytes'; add `encoding_table' and `decoding_table'. (CHARSET_REP_BYTES): Deleted. (XCHARSET_REP_BYTES): Deleted. (XCHARSET_COLUMNS): Deleted. (CHAR_COLUMNS): New macro. (lookup_composite_char): Deleted unconditionally. (composite_char_string): Likewise. --- diff --git a/src/char-ucs.h b/src/char-ucs.h index 6855219..abe9fe7 100644 --- a/src/char-ucs.h +++ b/src/char-ucs.h @@ -217,11 +217,6 @@ struct Lisp_Charset /* Final byte of this character set in ISO2022 designating escape sequence */ Bufbyte final; - /* Number of bytes (1 - 4) required in the internal representation - for characters in this character set. This is *not* the - same as the dimension of the character set). */ - unsigned int rep_bytes; - /* Number of columns a character in this charset takes up, on TTY devices. Not used for X devices. */ unsigned int columns; @@ -240,6 +235,12 @@ struct Lisp_Charset /* Which half of font to be used to display this character set */ unsigned int graphic; + + /* character->byte mapping table */ + Emchar_to_byte_table* encoding_table; + + /* byte->character mapping table */ + Emchar* decoding_table; }; DECLARE_LRECORD (charset, struct Lisp_Charset); @@ -266,7 +267,6 @@ DECLARE_LRECORD (charset, struct Lisp_Charset); #define CHARSET_NAME(cs) ((cs)->name) #define CHARSET_SHORT_NAME(cs) ((cs)->short_name) #define CHARSET_LONG_NAME(cs) ((cs)->long_name) -#define CHARSET_REP_BYTES(cs) ((cs)->rep_bytes) #define CHARSET_COLUMNS(cs) ((cs)->columns) #define CHARSET_GRAPHIC(cs) ((cs)->graphic) #define CHARSET_TYPE(cs) ((cs)->type) @@ -284,8 +284,6 @@ DECLARE_LRECORD (charset, struct Lisp_Charset); #define XCHARSET_NAME(cs) CHARSET_NAME (XCHARSET (cs)) #define XCHARSET_SHORT_NAME(cs) CHARSET_SHORT_NAME (XCHARSET (cs)) #define XCHARSET_LONG_NAME(cs) CHARSET_LONG_NAME (XCHARSET (cs)) -#define XCHARSET_REP_BYTES(cs) CHARSET_REP_BYTES (XCHARSET (cs)) -#define XCHARSET_COLUMNS(cs) CHARSET_COLUMNS (XCHARSET (cs)) #define XCHARSET_GRAPHIC(cs) CHARSET_GRAPHIC (XCHARSET (cs)) #define XCHARSET_TYPE(cs) CHARSET_TYPE (XCHARSET (cs)) #define XCHARSET_DIRECTION(cs) CHARSET_DIRECTION (XCHARSET (cs)) @@ -671,15 +669,7 @@ CHAR_CHARSET (Emchar ch) #define CHAR_LEADING_BYTE(c) (XCHARSET_LEADING_BYTE(CHAR_CHARSET(c))) - -#ifdef ENABLE_COMPOSITE_CHARS -/************************************************************************/ -/* Composite characters */ -/************************************************************************/ - -Emchar lookup_composite_char (Bufbyte *str, int len); -Lisp_Object composite_char_string (Emchar ch); -#endif /* ENABLE_COMPOSITE_CHARS */ +#define CHAR_COLUMNS(c) (CHARSET_COLUMNS(XCHARSET(CHAR_CHARSET(c)))) /************************************************************************/