Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
830:20baef34a0b0 | 831:5d09ddada9ae |
---|---|
1000 #else /* not MULE */ | 1000 #else /* not MULE */ |
1001 | 1001 |
1002 #define valid_emchar_p(ch) (! (ch & ~0xFF)) | 1002 #define valid_emchar_p(ch) (! (ch & ~0xFF)) |
1003 | 1003 |
1004 #endif /* not MULE */ | 1004 #endif /* not MULE */ |
1005 | |
1006 DECLARE_INLINE_HEADER ( | |
1007 Lisp_Object | |
1008 make_char (Emchar val) | |
1009 ) | |
1010 { | |
1011 type_checking_assert (valid_emchar_p (val)); | |
1012 return make_char_1 (val); | |
1013 } | |
1005 | 1014 |
1006 #define CHAR_INTP(x) (INTP (x) && valid_emchar_p (XINT (x))) | 1015 #define CHAR_INTP(x) (INTP (x) && valid_emchar_p (XINT (x))) |
1007 | 1016 |
1008 #define CHAR_OR_CHAR_INTP(x) (CHARP (x) || CHAR_INTP (x)) | 1017 #define CHAR_OR_CHAR_INTP(x) (CHARP (x) || CHAR_INTP (x)) |
1009 | 1018 |