1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-30 08:09:04 +00:00

(RE_TRANSLATE_P): If make_number is not a macro, don't use it here.

This commit is contained in:
Richard M. Stallman 2004-12-02 23:43:51 +00:00
parent d8bf42567e
commit 0cec6eaf20

View File

@ -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. */