Mercurial > hg > xemacs-beta
diff src/text.h @ 831:5d09ddada9ae
[xemacs-hg @ 2002-05-09 07:15:20 by ben]
fix two bugs noted by Steve
doprnt.c: Use make_int() not make_char() when error about bad charval,
or abort will occur.
extents.c: Loop over children, not ourself -- avoid infinite loop.
lisp-disunion.h, lisp-union.h: Rename make_char() to make_char_1 for error-checking purposes.
lread.c: Syntax error if escape is outside of ISO-8859-1 range.
Remove hopelessly broken (and unworkable) FSF_KEYS code.
mule-coding.c, search.c: Spacing changes.
text.h: New make_char() -- verify that the char value is legal.
author | ben |
---|---|
date | Thu, 09 May 2002 07:16:38 +0000 |
parents | 6728e641994e |
children | e7ee5f8bde58 |
line wrap: on
line diff
--- a/src/text.h Tue May 07 16:14:04 2002 +0000 +++ b/src/text.h Thu May 09 07:16:38 2002 +0000 @@ -1003,6 +1003,15 @@ #endif /* not MULE */ +DECLARE_INLINE_HEADER ( +Lisp_Object +make_char (Emchar val) +) +{ + type_checking_assert (valid_emchar_p (val)); + return make_char_1 (val); +} + #define CHAR_INTP(x) (INTP (x) && valid_emchar_p (XINT (x))) #define CHAR_OR_CHAR_INTP(x) (CHARP (x) || CHAR_INTP (x))