changeset 90019:1987dfad4543

(unibyte_has_multibyte_table): Extern it. (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
author Kenichi Handa <handa@m17n.org>
date Fri, 15 Oct 2004 02:09:31 +0000
parents 49e1148db0d3
children 680f4ba0cdc9
files src/character.h
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/character.h	Thu Oct 14 12:36:25 2004 +0000
+++ b/src/character.h	Fri Oct 15 02:09:31 2004 +0000
@@ -77,6 +77,12 @@
 #define unibyte_char_to_multibyte(c)	\
   ((c) < 256 ? unibyte_to_multibyte_table[(c)] : (c))
 
+/* Nth element is 1 iff unibyte char N can be mapped to a multibyte
+   char.  */
+extern char unibyte_has_multibyte_table[256];
+
+#define UNIBYTE_CHAR_HAS_MULTIBYTE_P(c) (unibyte_has_multibyte_table[(c)])
+
 /* If C is not ASCII, make it unibyte. */
 #define MAKE_CHAR_UNIBYTE(c)	\
   do {				\