[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RE_TRANSLATE_P
From: |
Richard Stallman |
Subject: |
Re: RE_TRANSLATE_P |
Date: |
Mon, 29 Nov 2004 01:12:53 -0500 |
This causes RE_TRANSLATE_P to invoke a function, at least if compilers
other than GCC are used. I wonder why replacing XFASTINT with XINT
was not enough to fix the original problem?
Would this make it right?
*** config.in 23 Nov 2004 11:44:45 -0500 1.203
--- config.in 29 Nov 2004 00:30:17 -0500
***************
*** 969,975 ****
--- 969,979 ----
/* 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 __GCC__
#define RE_TRANSLATE_P(TBL) (!EQ (TBL, make_number (0)))
+ #else
+ #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. */
- RE_TRANSLATE_P, Eli Zaretskii, 2004/11/26
- Re: RE_TRANSLATE_P,
Richard Stallman <=