changeset 28254:bc79dbcca2a1

[!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR_CHAR): Define them differently for the configuration of --without-x.
author Kenichi Handa <handa@m17n.org>
date Wed, 22 Mar 2000 01:55:55 +0000
parents 3c4e375505f0
children 0f3c283ff1b0
files src/dispextern.h
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispextern.h	Wed Mar 22 01:51:06 2000 +0000
+++ b/src/dispextern.h	Wed Mar 22 01:55:55 2000 +0000
@@ -1330,6 +1330,8 @@
       ? FRAME_FACE_CACHE (F)->faces_by_id[ID]		\
       : NULL)
 
+#ifdef HAVE_WINDOW_SYSTEM
+
 /* Non-zero if FACE is suitable for displaying character CHAR.  */
 
 #define FACE_SUITABLE_FOR_CHAR_P(FACE, CHAR)	\
@@ -1346,9 +1348,12 @@
    ? (FACE)->ascii_face->id		\
    : face_for_char ((F), (FACE), (CHAR)))
 
-/* The default registry and encoding to use.  */
-
-extern Lisp_Object Vface_default_registry;
+#else /* not HAVE_WINDOW_SYSTEM */
+
+#define FACE_SUITABLE_FOR_CHAR_P(FACE, CHAR) 1
+#define FACE_FOR_CHAR(F, FACE, CHAR) ((FACE)->id)
+
+#endif /* not HAVE_WINDOW_SYSTEM */
 
 /* Non-zero means face attributes have been changed since the last
    redisplay.  Used in redisplay_internal.  */