From: tomo Date: Thu, 26 Aug 1999 10:53:12 +0000 (+0000) Subject: Sync up with r21-2-19-tomo-4. X-Git-Tag: r21-2-19-utf-2000-0_4-2~5 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=988c23bf605446c466cb1dc1a0d430ee31358c4d;p=chise%2Fxemacs-chise.git Sync up with r21-2-19-tomo-4. --- diff --git a/src/faces.h b/src/faces.h index c2e821d..697b2f8 100644 --- a/src/faces.h +++ b/src/faces.h @@ -281,7 +281,7 @@ void default_face_height_and_width_1 (Lisp_Object domain, int *height, int *width); #define FACE_CACHEL_FONT(cachel, charset) \ - (cachel->font[XCHARSET_LEADING_BYTE (charset) - 128]) + (cachel->font[XCHARSET_LEADING_BYTE (charset) - MIN_LEADING_BYTE]) #define WINDOW_FACE_CACHEL(window, index) \ Dynarr_atp ((window)->face_cachels, index) diff --git a/src/mule-charset.c b/src/mule-charset.c index 8db6392..c3e12f0 100644 --- a/src/mule-charset.c +++ b/src/mule-charset.c @@ -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]; @@ -605,8 +605,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; #ifndef UTF2000 if (id < 0xA0) /* official leading byte */ diff --git a/src/mule-charset.h b/src/mule-charset.h index 5ee9061..7686f57 100644 --- a/src/mule-charset.h +++ b/src/mule-charset.h @@ -541,7 +541,7 @@ DECLARE_LRECORD (charset, struct Lisp_Charset); CHARSET_REVERSE_DIRECTION_CHARSET (XCHARSET (cs)) /* Table of charsets indexed by (leading byte - 128). */ -extern Lisp_Object charset_by_leading_byte[128]; +extern Lisp_Object charset_by_leading_byte[NUM_LEADING_BYTES]; /* Table of charsets indexed by type/final-byte/direction. */ extern Lisp_Object charset_by_attributes[4][128][2]; @@ -566,12 +566,13 @@ INLINE Lisp_Object CHARSET_BY_LEADING_BYTE (int lb) { assert (lb >= 0x80 && lb <= 0xFF); - return charset_by_leading_byte[lb - 128]; + return charset_by_leading_byte[lb - MIN_LEADING_BYTE]; } #else -#define CHARSET_BY_LEADING_BYTE(lb) (charset_by_leading_byte[(lb) - 128]) +#define CHARSET_BY_LEADING_BYTE(lb) \ + (charset_by_leading_byte[(lb) - MIN_LEADING_BYTE]) #endif