diff options
author | Kenichi Handa <handa@m17n.org> | 1999-12-27 05:04:23 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 1999-12-27 05:04:23 +0000 |
commit | 07129d9eaf88a5b619fec5e44ef7d81cbcf99a01 (patch) | |
tree | b5fd2814bc157739010aff0c56dad0e6baab21e7 /src/charset.h | |
parent | 3b0fee460ebf3ea8515d143ce4bc49ef78e58a77 (diff) | |
download | emacs-07129d9eaf88a5b619fec5e44ef7d81cbcf99a01.tar.gz |
(CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
of GLYPH_MASK_CHAR.
Diffstat (limited to 'src/charset.h')
-rw-r--r-- | src/charset.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/charset.h b/src/charset.h index c0b7e4d9eb4..6b2e25b89dd 100644 --- a/src/charset.h +++ b/src/charset.h @@ -489,8 +489,9 @@ extern int iso_charset_table[2][2][128]; #define BASE_LEADING_CODE_P(c) (BYTES_BY_CHAR_HEAD ((unsigned char) (c)) > 1) /* Return how many bytes C will occupy in a multibyte buffer. */ -#define CHAR_BYTES(c) \ - ((SINGLE_BYTE_CHAR_P ((c)) || ((c) & ~GLYPH_MASK_CHAR)) ? 1 : char_bytes (c)) +#define CHAR_BYTES(c) \ + ((SINGLE_BYTE_CHAR_P ((c)) || ((c) & ~((1 << CHARACTERBITS) - 1))) \ + ? 1 : char_bytes (c)) /* The following two macros CHAR_STRING and STRING_CHAR are the main entry points to convert between Emacs two types of character |