From 0cec6eaf2067c8cc2ea382ba8377d9a1d3794eb8 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 2 Dec 2004 23:43:51 +0000 Subject: [PATCH] (RE_TRANSLATE_P): If make_number is not a macro, don't use it here. --- src/config.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/config.in b/src/config.in index 7721d1c5d6e..4419fa52ac8 100644 --- a/src/config.in +++ b/src/config.in @@ -969,7 +969,13 @@ Boston, MA 02111-1307, USA. */ /* 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. */ -- 2.39.5