From: tomo Date: Mon, 11 Oct 1999 21:23:52 +0000 (+0000) Subject: (MIN_LEADING_BYTE): Changed to `-0x40'. X-Git-Tag: r21-2-19-utf-2000-0_9-0~7 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=aced0c52e1a26c7840e4531097785ee64a46b6bf;p=chise%2Fxemacs-chise.git.1 (MIN_LEADING_BYTE): Changed to `-0x40'. (CHARSET_ID_OFFSET): Changed to `0'. (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE). (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'. --- diff --git a/src/char-ucs.h b/src/char-ucs.h index ba1e919..570cddf 100644 --- a/src/char-ucs.h +++ b/src/char-ucs.h @@ -64,8 +64,8 @@ extern Lisp_Object Vcharset_latin_viscii_upper; typedef int Charset_ID; -#define MIN_LEADING_BYTE 0x00 -#define CHARSET_ID_OFFSET 0x40 +#define MIN_LEADING_BYTE -0x40 +#define CHARSET_ID_OFFSET 0x00 /* represent normal 80-9F */ #define LEADING_BYTE_CONTROL_1 (CHARSET_ID_OFFSET - 1) @@ -189,7 +189,7 @@ typedef int Charset_ID; #define LEADING_BYTE_KOREAN_KPS9566 ('N' + CHARSET_ID_OFFSET_94x94) -#define NUM_LEADING_BYTES 256 +#define NUM_LEADING_BYTES (80 * 3 - MIN_LEADING_BYTE) /************************************************************************/ @@ -268,7 +268,7 @@ DECLARE_LRECORD (charset, struct Lisp_Charset); /* Leading byte and id have been regrouped. -- OG */ #define CHARSET_ID(cs) ((cs)->id) -#define CHARSET_LEADING_BYTE(cs) ((Bufbyte)(CHARSET_ID(cs))) +#define CHARSET_LEADING_BYTE(cs) (CHARSET_ID(cs)) #define CHARSET_NAME(cs) ((cs)->name) #define CHARSET_SHORT_NAME(cs) ((cs)->short_name) #define CHARSET_LONG_NAME(cs) ((cs)->long_name)