summaryrefslogtreecommitdiff
path: root/src/config.in
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2004-12-02 23:43:51 +0000
committerRichard M. Stallman <rms@gnu.org>2004-12-02 23:43:51 +0000
commit0cec6eaf2067c8cc2ea382ba8377d9a1d3794eb8 (patch)
treecad7b26b45ea2ca543dda6b5475b7022861081c9 /src/config.in
parentd8bf42567e956447313be88c742e7330e12192f0 (diff)
downloademacs-0cec6eaf2067c8cc2ea382ba8377d9a1d3794eb8.tar.gz
(RE_TRANSLATE_P): If make_number is not a macro, don't use it here.
Diffstat (limited to 'src/config.in')
-rw-r--r--src/config.in6
1 files changed, 6 insertions, 0 deletions
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. */