diff options
| author | Paul Eggert | 2011-04-13 19:52:33 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-13 19:52:33 -0700 |
| commit | 64520e5cf9ad7cba4f23288bffeec1aa2fff6c49 (patch) | |
| tree | b445ada9d58f3bde565681126314b49cc3c7852f /src/term.c | |
| parent | 1fa530214b68560d962c10c786a562f11a479444 (diff) | |
| download | emacs-64520e5cf9ad7cba4f23288bffeec1aa2fff6c49.tar.gz emacs-64520e5cf9ad7cba4f23288bffeec1aa2fff6c49.zip | |
* term.c: Make symbols static if they're not exported.
(tty_turn_off_highlight, get_tty_terminal, max_frame_cols):
(max_frame_lines, tty_set_terminal_modes):
(tty_reset_terminal_modes, tty_turn_off_highlight):
(get_tty_terminal): Now static.
(term_mouse_moveto): Do not define if HAVE_WINDOW_SYSTEM.
* termhooks.h (term_mouse_moveto): Do not declare if
HAVE_WINDOW_SYSTEMM.
* dispextern.h (tty_set_terminal_modes, tty_reset_terminal_modes):
(tty_turn_off_highlight, get_tty_terminal): Remove decls.
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/term.c b/src/term.c index 3547b9a2ddd..f70dd227878 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -77,9 +77,11 @@ static int been_here = -1; | |||
| 77 | static void tty_set_scroll_region (struct frame *f, int start, int stop); | 77 | static void tty_set_scroll_region (struct frame *f, int start, int stop); |
| 78 | static void turn_on_face (struct frame *, int face_id); | 78 | static void turn_on_face (struct frame *, int face_id); |
| 79 | static void turn_off_face (struct frame *, int face_id); | 79 | static void turn_off_face (struct frame *, int face_id); |
| 80 | static void tty_turn_off_highlight (struct tty_display_info *); | ||
| 80 | static void tty_show_cursor (struct tty_display_info *); | 81 | static void tty_show_cursor (struct tty_display_info *); |
| 81 | static void tty_hide_cursor (struct tty_display_info *); | 82 | static void tty_hide_cursor (struct tty_display_info *); |
| 82 | static void tty_background_highlight (struct tty_display_info *tty); | 83 | static void tty_background_highlight (struct tty_display_info *tty); |
| 84 | static struct terminal *get_tty_terminal (Lisp_Object, int); | ||
| 83 | static void clear_tty_hooks (struct terminal *terminal); | 85 | static void clear_tty_hooks (struct terminal *terminal); |
| 84 | static void set_tty_hooks (struct terminal *terminal); | 86 | static void set_tty_hooks (struct terminal *terminal); |
| 85 | static void dissociate_if_controlling_tty (int fd); | 87 | static void dissociate_if_controlling_tty (int fd); |
| @@ -133,11 +135,11 @@ enum no_color_bit | |||
| 133 | 135 | ||
| 134 | /* The largest frame width in any call to calculate_costs. */ | 136 | /* The largest frame width in any call to calculate_costs. */ |
| 135 | 137 | ||
| 136 | int max_frame_cols; | 138 | static int max_frame_cols; |
| 137 | 139 | ||
| 138 | /* The largest frame height in any call to calculate_costs. */ | 140 | /* The largest frame height in any call to calculate_costs. */ |
| 139 | 141 | ||
| 140 | int max_frame_lines; | 142 | static int max_frame_lines; |
| 141 | 143 | ||
| 142 | /* Non-zero if we have dropped our controlling tty and therefore | 144 | /* Non-zero if we have dropped our controlling tty and therefore |
| 143 | should not open a frame on stdout. */ | 145 | should not open a frame on stdout. */ |
| @@ -173,7 +175,7 @@ tty_ring_bell (struct frame *f) | |||
| 173 | 175 | ||
| 174 | /* Set up termcap modes for Emacs. */ | 176 | /* Set up termcap modes for Emacs. */ |
| 175 | 177 | ||
| 176 | void | 178 | static void |
| 177 | tty_set_terminal_modes (struct terminal *terminal) | 179 | tty_set_terminal_modes (struct terminal *terminal) |
| 178 | { | 180 | { |
| 179 | struct tty_display_info *tty = terminal->display_info.tty; | 181 | struct tty_display_info *tty = terminal->display_info.tty; |
| @@ -201,7 +203,7 @@ tty_set_terminal_modes (struct terminal *terminal) | |||
| 201 | 203 | ||
| 202 | /* Reset termcap modes before exiting Emacs. */ | 204 | /* Reset termcap modes before exiting Emacs. */ |
| 203 | 205 | ||
| 204 | void | 206 | static void |
| 205 | tty_reset_terminal_modes (struct terminal *terminal) | 207 | tty_reset_terminal_modes (struct terminal *terminal) |
| 206 | { | 208 | { |
| 207 | struct tty_display_info *tty = terminal->display_info.tty; | 209 | struct tty_display_info *tty = terminal->display_info.tty; |
| @@ -286,7 +288,7 @@ tty_turn_off_insert (struct tty_display_info *tty) | |||
| 286 | 288 | ||
| 287 | /* Handle highlighting. */ | 289 | /* Handle highlighting. */ |
| 288 | 290 | ||
| 289 | void | 291 | static void |
| 290 | tty_turn_off_highlight (struct tty_display_info *tty) | 292 | tty_turn_off_highlight (struct tty_display_info *tty) |
| 291 | { | 293 | { |
| 292 | if (tty->standout_mode) | 294 | if (tty->standout_mode) |
| @@ -2368,7 +2370,7 @@ set_tty_color_mode (struct tty_display_info *tty, struct frame *f) | |||
| 2368 | 2370 | ||
| 2369 | /* Return the tty display object specified by TERMINAL. */ | 2371 | /* Return the tty display object specified by TERMINAL. */ |
| 2370 | 2372 | ||
| 2371 | struct terminal * | 2373 | static struct terminal * |
| 2372 | get_tty_terminal (Lisp_Object terminal, int throw) | 2374 | get_tty_terminal (Lisp_Object terminal, int throw) |
| 2373 | { | 2375 | { |
| 2374 | struct terminal *t = get_terminal (terminal, throw); | 2376 | struct terminal *t = get_terminal (terminal, throw); |
| @@ -2614,6 +2616,8 @@ frame's terminal). */) | |||
| 2614 | ***********************************************************************/ | 2616 | ***********************************************************************/ |
| 2615 | 2617 | ||
| 2616 | #ifdef HAVE_GPM | 2618 | #ifdef HAVE_GPM |
| 2619 | |||
| 2620 | #ifndef HAVE_WINDOW_SYSTEM | ||
| 2617 | void | 2621 | void |
| 2618 | term_mouse_moveto (int x, int y) | 2622 | term_mouse_moveto (int x, int y) |
| 2619 | { | 2623 | { |
| @@ -2627,6 +2631,7 @@ term_mouse_moveto (int x, int y) | |||
| 2627 | last_mouse_x = x; | 2631 | last_mouse_x = x; |
| 2628 | last_mouse_y = y; */ | 2632 | last_mouse_y = y; */ |
| 2629 | } | 2633 | } |
| 2634 | #endif /* HAVE_WINDOW_SYSTEM */ | ||
| 2630 | 2635 | ||
| 2631 | /* Implementation of draw_row_with_mouse_face for TTY/GPM. */ | 2636 | /* Implementation of draw_row_with_mouse_face for TTY/GPM. */ |
| 2632 | void | 2637 | void |