Mercurial > emacs
changeset 58736:311652551ce2
(RE_TRANSLATE_P): If make_number is not a macro, don't use it here.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 02 Dec 2004 23:43:51 +0000 |
parents | dc21606c560a |
children | a67575cbdd93 |
files | src/config.in |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/config.in Thu Dec 02 23:37:13 2004 +0000 +++ b/src/config.in Thu Dec 02 23:43:51 2004 +0000 @@ -969,7 +969,13 @@ /* Tell regex.c to use a type compatible with Emacs. */ #define RE_TRANSLATE_TYPE Lisp_Object #define RE_TRANSLATE(TBL, C) CHAR_TABLE_TRANSLATE (TBL, C) +#ifdef make_number +/* If make_number is a macro, use it. */ #define RE_TRANSLATE_P(TBL) (!EQ (TBL, make_number (0))) +#else +/* If make_number is a function, avoid it. */ +#define RE_TRANSLATE_P(TBL) (!(INTEGERP (TBL) && XINT (TBL) == 0)) +#endif #endif /* Avoid link-time collision with system mktime if we will use our own. */