From: tomo Date: Thu, 26 Aug 1999 05:36:56 +0000 (+0000) Subject: (charset_by_leading_byte): Use `NUM_LEADING_BYTES' instead of 128. X-Git-Tag: r21-2-19-tomo-4 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=162ca796348e538cd51b9f1a100233dd9cb72be1;p=chise%2Fxemacs-chise.git.1 (charset_by_leading_byte): Use `NUM_LEADING_BYTES' instead of 128. (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128. --- 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