]> code.delx.au - gnu-emacs/commitdiff
(term_clear_mouse_face, term_mouse_highlight)
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 29 Sep 2007 20:56:48 +0000 (20:56 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 29 Sep 2007 20:56:48 +0000 (20:56 +0000)
(tty_write_glyphs_with_face): Only define is HAVE_GPM.

src/ChangeLog
src/term.c

index 0f2e34fe94ec2d3e5eca0b55e21b85b3fbab5e56..70fbaad280ecf02348d736ae3617fd9e77904efb 100644 (file)
@@ -1,5 +1,8 @@
 2007-09-29  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * term.c (term_clear_mouse_face, term_mouse_highlight)
+       (tty_write_glyphs_with_face): Only define is HAVE_GPM.
+
        * print.c (safe_debug_print): Use XHASH.
 
        * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
index f00f7b2fb753a5ef3572dee8c0d31380472c8cb2..a6c69c71bef2c72d0eb558163185faa0e058c9a4 100644 (file)
@@ -182,15 +182,15 @@ static int system_uses_terminfo;
 char *tparam ();
 
 extern char *tgetstr ();
-
-static void term_clear_mouse_face ();
-static void term_mouse_highlight (struct frame *f, int x, int y);
 \f
 
 #ifdef HAVE_GPM
 #include <sys/fcntl.h>
 #include "buffer.h"
 
+static void term_clear_mouse_face ();
+static void term_mouse_highlight (struct frame *f, int x, int y);
+
 /* The device for which we have enabled gpm support (or NULL).  */
 struct tty_display_info *gpm_tty = NULL;
 
@@ -739,6 +739,8 @@ tty_write_glyphs (struct frame *f, struct glyph *string, int len)
   cmcheckmagic (tty);
 }
 
+#ifdef HAVE_GPM                        /* Only used by GPM code.  */
+
 static void
 tty_write_glyphs_with_face (f, string, len, face_id)
      register struct frame *f;
@@ -797,7 +799,7 @@ tty_write_glyphs_with_face (f, string, len, face_id)
 
   cmcheckmagic (tty);
 }
-
+#endif
 
 /* An implementation of insert_glyphs for termcap frames. */