patch-2.1.111 linux/drivers/char/selection.c
Next file: linux/drivers/char/tuner.c
Previous file: linux/drivers/char/saa5249.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Tue Jul 21 10:28:23 1998
- Orig file:
v2.1.110/linux/drivers/char/selection.c
- Orig date:
Thu Jul 16 18:09:25 1998
diff -u --recursive --new-file v2.1.110/linux/drivers/char/selection.c linux/drivers/char/selection.c
@@ -42,8 +42,6 @@
static int sel_buffer_lth = 0;
static char *sel_buffer = NULL;
-#define sel_pos(n) inverse_translate(scrw2glyph(screen_word(sel_cons, n, 1)))
-
/* clear_selection, highlight and highlight_pointer can be called
from interrupt (via scrollback/front) */
@@ -57,6 +55,12 @@
inline static void
highlight_pointer(const int where) {
complement_pos(sel_cons, where);
+}
+
+static unsigned char
+sel_pos(int n)
+{
+ return inverse_translate(screen_glyph(sel_cons, n));
}
/* remove the current selection highlight, if any,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov