Mercurial > emacs
comparison src/xdisp.c @ 25098:188fc8b67ea9
(string_char_and_length): Fix previous change.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 28 Jul 1999 19:46:05 +0000 |
parents | 1af1088d3812 |
children | 6849f435f6e8 |
comparison
equal
deleted
inserted
replaced
25097:65612dade7f5 | 25098:188fc8b67ea9 |
---|---|
866 STRING_CHAR_AND_LENGTH but never returns an invalid character. If | 866 STRING_CHAR_AND_LENGTH but never returns an invalid character. If |
867 we find one, we return a `?', but with the length of the illegal | 867 we find one, we return a `?', but with the length of the illegal |
868 character. */ | 868 character. */ |
869 | 869 |
870 static INLINE int | 870 static INLINE int |
871 string_char_and_length (str, max_len, len) | 871 string_char_and_length (str, maxlen, len) |
872 unsigned char *str; | 872 unsigned char *str; |
873 int max_len, *len; | 873 int maxlen, *len; |
874 { | 874 { |
875 int c; | 875 int c; |
876 | 876 |
877 c = STRING_CHAR_AND_LENGTH (str, maxlen, *len); | 877 c = STRING_CHAR_AND_LENGTH (str, maxlen, *len); |
878 if (!CHAR_VALID_P (c, 1)) | 878 if (!CHAR_VALID_P (c, 1)) |