aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/character.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/character.h b/src/character.h
index c2ac15bfc80..f193dcd6906 100644
--- a/src/character.h
+++ b/src/character.h
@@ -68,6 +68,22 @@ Boston, MA 02111-1307, USA. */
68 that corresponds to a raw 8-bit byte. */ 68 that corresponds to a raw 8-bit byte. */
69#define CHAR_BYTE8_HEAD_P(byte) ((byte) == 0xC0 || (byte) == 0xC1) 69#define CHAR_BYTE8_HEAD_P(byte) ((byte) == 0xC0 || (byte) == 0xC1)
70 70
71/* If C is not ASCII, make it unibyte. */
72
73#define MAKE_CHAR_UNIBYTE(c) \
74 if (! ASCII_CHAR_P (c)) \
75 c = multibyte_char_to_unibyte (c, Qnil); \
76 else
77
78
79/* If C is not ASCII, make it multibyte. */
80
81#define MAKE_CHAR_MULTIBYTE(c) \
82 if (! ASCII_CHAR_P (c)) \
83 c = unibyte_char_to_multibyte (c); \
84 else
85
86
71/* This is the maximum byte length of multibyte form. */ 87/* This is the maximum byte length of multibyte form. */
72#define MAX_MULTIBYTE_LENGTH 5 88#define MAX_MULTIBYTE_LENGTH 5
73 89