Mercurial > emacs
changeset 89980:b27fcfc48d2e
(CHAR_CHARSET): Shortcut for ASCII case.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Sun, 19 Sep 2004 03:59:24 +0000 |
parents | 2e44ef8c14b4 |
children | 64f70620b634 |
files | src/charset.h |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/charset.h Fri Sep 17 14:31:05 2004 +0000 +++ b/src/charset.h Sun Sep 19 03:59:24 2004 +0000 @@ -371,8 +371,9 @@ /* Lookup Vcharset_order_list and return the first charset that contains the character C. */ -#define CHAR_CHARSET(c) \ - char_charset ((c), Qnil, NULL) +#define CHAR_CHARSET(c) \ + ((c) < 0x80 ? CHARSET_FROM_ID (charset_ascii) \ + : char_charset ((c), Qnil, NULL)) #if 0 /* Char-table of charset-sets. Each element is a bool vector indexed