aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2004-10-15 02:09:31 +0000
committerKenichi Handa2004-10-15 02:09:31 +0000
commit1acbd067cdf569158a6b70d0357d856adfc5c996 (patch)
tree834970e297372e94904991543d20afe140039041 /src
parentf5bc837c48e8ed95eca99f298ecac9cff8f617dc (diff)
downloademacs-1acbd067cdf569158a6b70d0357d856adfc5c996.tar.gz
emacs-1acbd067cdf569158a6b70d0357d856adfc5c996.zip
(unibyte_has_multibyte_table): Extern it.
(UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
Diffstat (limited to 'src')
-rw-r--r--src/character.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/character.h b/src/character.h
index ff9e8e00062..c41c5daa906 100644
--- a/src/character.h
+++ b/src/character.h
@@ -77,6 +77,12 @@ extern int unibyte_to_multibyte_table[256];
77#define unibyte_char_to_multibyte(c) \ 77#define unibyte_char_to_multibyte(c) \
78 ((c) < 256 ? unibyte_to_multibyte_table[(c)] : (c)) 78 ((c) < 256 ? unibyte_to_multibyte_table[(c)] : (c))
79 79
80/* Nth element is 1 iff unibyte char N can be mapped to a multibyte
81 char. */
82extern char unibyte_has_multibyte_table[256];
83
84#define UNIBYTE_CHAR_HAS_MULTIBYTE_P(c) (unibyte_has_multibyte_table[(c)])
85
80/* If C is not ASCII, make it unibyte. */ 86/* If C is not ASCII, make it unibyte. */
81#define MAKE_CHAR_UNIBYTE(c) \ 87#define MAKE_CHAR_UNIBYTE(c) \
82 do { \ 88 do { \