Mercurial > emacs
changeset 21444:0cba6f211d7c
(MULTIBYTE_FORM_LENGTH): Don't check LEN here.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 09 Apr 1998 05:40:23 +0000 |
parents | 3cb2644c8dd2 |
children | 4c0b4a1025cd |
files | src/charset.h |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/charset.h Thu Apr 09 05:40:23 1998 +0000 +++ b/src/charset.h Thu Apr 09 05:40:23 1998 +0000 @@ -612,10 +612,9 @@ /* Return the length of the multi-byte form at string STR of length LEN. */ -#define MULTIBYTE_FORM_LENGTH(str, len) \ - ((BYTES_BY_CHAR_HEAD (*(unsigned char *)(str)) == 1 \ - || BYTES_BY_CHAR_HEAD (*(unsigned char *)(str)) > (len)) \ - ? 1 \ +#define MULTIBYTE_FORM_LENGTH(str, len) \ + (BYTES_BY_CHAR_HEAD (*(unsigned char *)(str)) == 1 \ + ? 1 \ : multibyte_form_length (str, len)) /* Set C a (possibly multibyte) character at P. P points into a