]> code.delx.au - gnu-emacs/commitdiff
(RE_TRANSLATE_TYPE): Define as Lisp_Object.
authorRichard M. Stallman <rms@gnu.org>
Sun, 8 Feb 1998 21:35:54 +0000 (21:35 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 8 Feb 1998 21:35:54 +0000 (21:35 +0000)
(RE_TRANSLATE): Use Faref to examine translate table.

src/config.in

index 007f24ead5ba6d80e541033ba1aef617e88da082..e986344ec244a29b35aa3f55e491b2bfd4f913cd 100644 (file)
@@ -347,8 +347,8 @@ Boston, MA 02111-1307, USA.  */
 
 #ifdef emacs /* Don't do this for lib-src.  */
 /* Tell regex.c to use a type compatible with Emacs.  */
-#define RE_TRANSLATE_TYPE Lisp_Object *
-#define RE_TRANSLATE(TBL, C) XINT ((TBL)[C])
+#define RE_TRANSLATE_TYPE Lisp_Object
+#define RE_TRANSLATE(TBL, C) XINT (Faref (TBL, make_number (C)))
 #endif
 
 /* Avoid link-time collision with system mktime if we will use our own.  */