comparison src/xdisp.c @ 28932:f8b0ac62f238

Use the term `invalid' instead of `illegal'.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 16 May 2000 14:29:08 +0000
parents 04cbb0510d7e
children 540ca0531c77
comparison
equal deleted inserted replaced
28931:bb9ed79dd3fd 28932:f8b0ac62f238
876 ***********************************************************************/ 876 ***********************************************************************/
877 877
878 /* Return the next character from STR which is MAXLEN bytes long. 878 /* Return the next character from STR which is MAXLEN bytes long.
879 Return in *LEN the length of the character. This is like 879 Return in *LEN the length of the character. This is like
880 STRING_CHAR_AND_LENGTH but never returns an invalid character. If 880 STRING_CHAR_AND_LENGTH but never returns an invalid character. If
881 we find one, we return a `?', but with the length of the illegal 881 we find one, we return a `?', but with the length of the invalid
882 character. */ 882 character. */
883 883
884 static INLINE int 884 static INLINE int
885 string_char_and_length (str, maxlen, len) 885 string_char_and_length (str, maxlen, len)
886 unsigned char *str; 886 unsigned char *str;
889 int c; 889 int c;
890 890
891 c = STRING_CHAR_AND_LENGTH (str, maxlen, *len); 891 c = STRING_CHAR_AND_LENGTH (str, maxlen, *len);
892 if (!CHAR_VALID_P (c, 1)) 892 if (!CHAR_VALID_P (c, 1))
893 /* We may not change the length here because other places in Emacs 893 /* We may not change the length here because other places in Emacs
894 don't use this function, i.e. they silently accept illegal 894 don't use this function, i.e. they silently accept invalid
895 characters. */ 895 characters. */
896 c = '?'; 896 c = '?';
897 897
898 return c; 898 return c;
899 } 899 }