comparison src/charset.h @ 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 0aadeca4a4a7
children d2e19a90c9ef
comparison
equal deleted inserted replaced
26994:be1938426575 26995:85c7cda1975f
487 iso_charset_table[XINT (dimension) - 1][XINT (chars) > 94][XINT (final_char)] 487 iso_charset_table[XINT (dimension) - 1][XINT (chars) > 94][XINT (final_char)]
488 488
489 #define BASE_LEADING_CODE_P(c) (BYTES_BY_CHAR_HEAD ((unsigned char) (c)) > 1) 489 #define BASE_LEADING_CODE_P(c) (BYTES_BY_CHAR_HEAD ((unsigned char) (c)) > 1)
490 490
491 /* Return how many bytes C will occupy in a multibyte buffer. */ 491 /* Return how many bytes C will occupy in a multibyte buffer. */
492 #define CHAR_BYTES(c) \ 492 #define CHAR_BYTES(c) \
493 ((SINGLE_BYTE_CHAR_P ((c)) || ((c) & ~GLYPH_MASK_CHAR)) ? 1 : char_bytes (c)) 493 ((SINGLE_BYTE_CHAR_P ((c)) || ((c) & ~((1 << CHARACTERBITS) - 1))) \
494 ? 1 : char_bytes (c))
494 495
495 /* The following two macros CHAR_STRING and STRING_CHAR are the main 496 /* The following two macros CHAR_STRING and STRING_CHAR are the main
496 entry points to convert between Emacs two types of character 497 entry points to convert between Emacs two types of character
497 representations: multi-byte form and single-word form (character 498 representations: multi-byte form and single-word form (character
498 code). */ 499 code). */