From 0508e898c39759a4426f55f2f3aefc7e14c6d3e7 Mon Sep 17 00:00:00 2001 From: tomo Date: Fri, 3 Sep 1999 22:55:06 +0000 Subject: [PATCH] (Charset_ID): Moved from buffer.h. (MIN_LEADING_BYTE): Likewise. (LEADING_BYTE_ASCII): Likewise. (NUM_LEADING_BYTES): Likewise. (CHARSETP): Likewise. (CHARSET_BY_LEADING_BYTE): Likewise. (XCHARSET_LEADING_BYTE): Likewise. (XCHARSET_GRAPHIC): Likewise. (XCHARSET_COLUMNS): Likewise. (XCHARSET_DIMENSION): Likewise. (CHAR_CHARSET): Likewise. (CHAR_LEADING_BYTE): Likewise. (BREAKUP_CHAR): Likewise. (Vcharset_ascii): Likewise. --- src/char-1byte.h | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/src/char-1byte.h b/src/char-1byte.h index 7a37242..98aefa5 100644 --- a/src/char-1byte.h +++ b/src/char-1byte.h @@ -26,4 +26,48 @@ Boston, MA 02111-1307, USA. */ #define valid_char_p(ch) ((unsigned int) (ch) <= 0xff) + +/************************************************************************/ +/* Definition of leading bytes */ +/************************************************************************/ + +typedef int Charset_ID; + +#define MIN_LEADING_BYTE 0x80 +#define LEADING_BYTE_ASCII 0x80 +#define NUM_LEADING_BYTES 1 + + +/************************************************************************/ +/* Information about a particular character set */ +/************************************************************************/ + +#define CHARSETP(cs) 1 +#define CHARSET_BY_LEADING_BYTE(lb) Vcharset_ascii +#define XCHARSET_LEADING_BYTE(cs) LEADING_BYTE_ASCII +#define XCHARSET_GRAPHIC(cs) -1 +#define XCHARSET_COLUMNS(cs) 1 +#define XCHARSET_DIMENSION(cs) 1 + + +/************************************************************************/ +/* Dealing with characters */ +/************************************************************************/ + +#define CHAR_CHARSET(ch) Vcharset_ascii +#define CHAR_LEADING_BYTE(ch) LEADING_BYTE_ASCII + +#define BREAKUP_CHAR(ch, charset, byte1, byte2) do { \ + (charset) = Vcharset_ascii; \ + (byte1) = (ch); \ + (byte2) = 0; \ +} while (0) + + +/************************************************************************/ +/* Exported functions */ +/************************************************************************/ + +#define Vcharset_ascii Qnil + #endif /* _XEMACS_CHAR_1BYTE_H */ -- 1.7.10.4