aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/charset.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charset.h b/src/charset.h
index 3a4eb5cbfcc..b49ed87a3ab 100644
--- a/src/charset.h
+++ b/src/charset.h
@@ -216,7 +216,7 @@ extern int charset_big5_2; /* Big5 Level 2 (Chinese Traditional) */
216#define MAX_CHAR (0x1F << 14) 216#define MAX_CHAR (0x1F << 14)
217 217
218/* 1 if C is a single byte character, else 0. */ 218/* 1 if C is a single byte character, else 0. */
219#define SINGLE_BYTE_CHAR_P(c) ((unsigned) (c) < 0x100) 219#define SINGLE_BYTE_CHAR_P(c) (((unsigned)(c) & 0xFF) == (c))
220 220
221/* 1 if BYTE is an ASCII character in itself, in multibyte mode. */ 221/* 1 if BYTE is an ASCII character in itself, in multibyte mode. */
222#define ASCII_BYTE_P(byte) ((byte) < 0x80) 222#define ASCII_BYTE_P(byte) ((byte) < 0x80)
@@ -535,7 +535,7 @@ extern int iso_charset_table[2][2][128];
535 535
536#define CHAR_STRING(c, str) \ 536#define CHAR_STRING(c, str) \
537 (SINGLE_BYTE_CHAR_P (c) \ 537 (SINGLE_BYTE_CHAR_P (c) \
538 ? ((ASCII_BYTE_P (c) || c >= 0xA0) \ 538 ? ((ASCII_BYTE_P (c) || c >= 0xA0) \
539 ? (*(str) = (unsigned char)(c), 1) \ 539 ? (*(str) = (unsigned char)(c), 1) \
540 : (*(str) = LEADING_CODE_8_BIT_CONTROL, *((str)+ 1) = c + 0x20, 2)) \ 540 : (*(str) = LEADING_CODE_8_BIT_CONTROL, *((str)+ 1) = c + 0x20, 2)) \
541 : char_to_string (c, (unsigned char *) str)) 541 : char_to_string (c, (unsigned char *) str))