Mercurial > emacs
changeset 26995:85c7cda1975f
(CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
of GLYPH_MASK_CHAR.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 27 Dec 1999 05:04:23 +0000 |
parents | be1938426575 |
children | 5409f70f1c23 |
files | src/charset.h |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/charset.h Mon Dec 27 05:03:46 1999 +0000 +++ b/src/charset.h Mon Dec 27 05:04:23 1999 +0000 @@ -489,8 +489,9 @@ #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