From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: RE_TRANSLATE_P
Date: Mon, 29 Nov 2004 01:12:53 -0500 [thread overview]
Message-ID: <E1CYemL-0002XE-OV@fencepost.gnu.org> (raw)
In-Reply-To: <01c4d3ab$Blat.v2.2.2$7b235d00@zahav.net.il> (eliz@gnu.org)
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. */
next prev parent reply other threads:[~2004-11-29 6:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-26 11:30 RE_TRANSLATE_P Eli Zaretskii
2004-11-29 6:12 ` Richard Stallman [this message]
2004-11-29 9:12 ` RE_TRANSLATE_P Kim F. Storm
2004-11-30 7:02 ` RE_TRANSLATE_P Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1CYemL-0002XE-OV@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).