changeset 61684:f1c19da9ba19

(CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro. (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro. (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
author Kenichi Handa <handa@m17n.org>
date Wed, 20 Apr 2005 07:49:35 +0000
parents 589380e2abb7
children 832617c86aa7
files src/lisp.h
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lisp.h	Wed Apr 20 07:37:03 2005 +0000
+++ b/src/lisp.h	Wed Apr 20 07:49:35 2005 +0000
@@ -720,6 +720,14 @@
    indexed by (charset-id + 128).  */
 #define CHAR_TABLE_ORDINARY_SLOTS 384
 
+/* These are the slot of the default values for single byte
+   characters.  As 0x9A is never be a charset-id, it is safe to use
+   that slot for ASCII.  0x9E and 0x80 are charset-ids of
+   eight-bit-control and eight-bit-graphic respectively.  */
+#define CHAR_TABLE_DEFAULT_SLOT_ASCII (0x9A + 128)
+#define CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL (0x9E + 128)
+#define CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC (0x80 + 128)
+
 /* This is the number of slots that apply to characters of ASCII and
    8-bit Europeans only.  */
 #define CHAR_TABLE_SINGLE_BYTE_SLOTS 256