comparison src/term.c @ 84981:a35153116cd0

(term_clear_mouse_face, term_mouse_highlight) (tty_write_glyphs_with_face): Only define is HAVE_GPM.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 29 Sep 2007 20:56:48 +0000
parents 6e58c1c8c0fc
children fd282fb888de
comparison
equal deleted inserted replaced
84980:db5465b7ec88 84981:a35153116cd0
180 static int system_uses_terminfo; 180 static int system_uses_terminfo;
181 181
182 char *tparam (); 182 char *tparam ();
183 183
184 extern char *tgetstr (); 184 extern char *tgetstr ();
185
186 static void term_clear_mouse_face ();
187 static void term_mouse_highlight (struct frame *f, int x, int y);
188 185
189 186
190 #ifdef HAVE_GPM 187 #ifdef HAVE_GPM
191 #include <sys/fcntl.h> 188 #include <sys/fcntl.h>
192 #include "buffer.h" 189 #include "buffer.h"
190
191 static void term_clear_mouse_face ();
192 static void term_mouse_highlight (struct frame *f, int x, int y);
193 193
194 /* The device for which we have enabled gpm support (or NULL). */ 194 /* The device for which we have enabled gpm support (or NULL). */
195 struct tty_display_info *gpm_tty = NULL; 195 struct tty_display_info *gpm_tty = NULL;
196 196
197 /* These variables describe the range of text currently shown in its 197 /* These variables describe the range of text currently shown in its
737 } 737 }
738 738
739 cmcheckmagic (tty); 739 cmcheckmagic (tty);
740 } 740 }
741 741
742 #ifdef HAVE_GPM /* Only used by GPM code. */
743
742 static void 744 static void
743 tty_write_glyphs_with_face (f, string, len, face_id) 745 tty_write_glyphs_with_face (f, string, len, face_id)
744 register struct frame *f; 746 register struct frame *f;
745 register struct glyph *string; 747 register struct glyph *string;
746 register int len, face_id; 748 register int len, face_id;
795 turn_off_face (f, face_id); 797 turn_off_face (f, face_id);
796 tty_turn_off_highlight (tty); 798 tty_turn_off_highlight (tty);
797 799
798 cmcheckmagic (tty); 800 cmcheckmagic (tty);
799 } 801 }
800 802 #endif
801 803
802 /* An implementation of insert_glyphs for termcap frames. */ 804 /* An implementation of insert_glyphs for termcap frames. */
803 805
804 static void 806 static void
805 tty_insert_glyphs (struct frame *f, struct glyph *start, int len) 807 tty_insert_glyphs (struct frame *f, struct glyph *start, int len)