diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2011-04-13 19:52:33 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-04-13 19:52:33 -0700 |
| commit | 64520e5cf9ad7cba4f23288bffeec1aa2fff6c49 (patch) | |
| tree | b445ada9d58f3bde565681126314b49cc3c7852f | |
| parent | 1fa530214b68560d962c10c786a562f11a479444 (diff) | |
| download | emacs-64520e5cf9ad7cba4f23288bffeec1aa2fff6c49.tar.gz | |
* 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.
| -rw-r--r-- | src/ChangeLog | 11 | ||||
| -rw-r--r-- | src/dispextern.h | 4 | ||||
| -rw-r--r-- | src/term.c | 17 | ||||
| -rw-r--r-- | src/termhooks.h | 3 |
4 files changed, 24 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1f8bae9cceb..3a649e0410b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,16 @@ 2011-04-14 Paul Eggert <eggert@cs.ucla.edu> + * 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. + * sysdep.c: Make symbols static if they're not exported. (emacs_get_tty, emacs_set_tty, old_fcntl_flags, old_fcntl_owner): Now static. diff --git a/src/dispextern.h b/src/dispextern.h index a94e0620eae..267f2d22335 100644 --- a/src/dispextern.h +++ b/src/dispextern.h @@ -3282,10 +3282,7 @@ extern struct terminal *init_initial_terminal (void); /* Defined in term.c */ -extern void tty_set_terminal_modes (struct terminal *); -extern void tty_reset_terminal_modes (struct terminal *); extern void tty_turn_off_insert (struct tty_display_info *); -extern void tty_turn_off_highlight (struct tty_display_info *); extern int string_cost (const char *); extern int per_line_cost (const char *); extern void calculate_costs (struct frame *); @@ -3293,7 +3290,6 @@ extern void produce_glyphs (struct it *); extern void produce_special_glyphs (struct it *, enum display_element_type); extern int tty_capable_p (struct tty_display_info *, unsigned, unsigned long, unsigned long); extern void set_tty_color_mode (struct tty_display_info *, struct frame *); -extern struct terminal *get_tty_terminal (Lisp_Object, int); extern struct terminal *get_named_tty (const char *); EXFUN (Ftty_type, 1); extern void create_tty_output (struct frame *); 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; static void tty_set_scroll_region (struct frame *f, int start, int stop); static void turn_on_face (struct frame *, int face_id); static void turn_off_face (struct frame *, int face_id); +static void tty_turn_off_highlight (struct tty_display_info *); static void tty_show_cursor (struct tty_display_info *); static void tty_hide_cursor (struct tty_display_info *); static void tty_background_highlight (struct tty_display_info *tty); +static struct terminal *get_tty_terminal (Lisp_Object, int); static void clear_tty_hooks (struct terminal *terminal); static void set_tty_hooks (struct terminal *terminal); static void dissociate_if_controlling_tty (int fd); @@ -133,11 +135,11 @@ enum no_color_bit /* The largest frame width in any call to calculate_costs. */ -int max_frame_cols; +static int max_frame_cols; /* The largest frame height in any call to calculate_costs. */ -int max_frame_lines; +static int max_frame_lines; /* Non-zero if we have dropped our controlling tty and therefore should not open a frame on stdout. */ @@ -173,7 +175,7 @@ tty_ring_bell (struct frame *f) /* Set up termcap modes for Emacs. */ -void +static void tty_set_terminal_modes (struct terminal *terminal) { struct tty_display_info *tty = terminal->display_info.tty; @@ -201,7 +203,7 @@ tty_set_terminal_modes (struct terminal *terminal) /* Reset termcap modes before exiting Emacs. */ -void +static void tty_reset_terminal_modes (struct terminal *terminal) { struct tty_display_info *tty = terminal->display_info.tty; @@ -286,7 +288,7 @@ tty_turn_off_insert (struct tty_display_info *tty) /* Handle highlighting. */ -void +static void tty_turn_off_highlight (struct tty_display_info *tty) { if (tty->standout_mode) @@ -2368,7 +2370,7 @@ set_tty_color_mode (struct tty_display_info *tty, struct frame *f) /* Return the tty display object specified by TERMINAL. */ -struct terminal * +static struct terminal * get_tty_terminal (Lisp_Object terminal, int throw) { struct terminal *t = get_terminal (terminal, throw); @@ -2614,6 +2616,8 @@ frame's terminal). */) ***********************************************************************/ #ifdef HAVE_GPM + +#ifndef HAVE_WINDOW_SYSTEM void term_mouse_moveto (int x, int y) { @@ -2627,6 +2631,7 @@ term_mouse_moveto (int x, int y) last_mouse_x = x; last_mouse_y = y; */ } +#endif /* HAVE_WINDOW_SYSTEM */ /* Implementation of draw_row_with_mouse_face for TTY/GPM. */ void diff --git a/src/termhooks.h b/src/termhooks.h index 0ccd2dac9e1..2f509009bd9 100644 --- a/src/termhooks.h +++ b/src/termhooks.h @@ -306,7 +306,9 @@ enum { #ifdef HAVE_GPM #include <gpm.h> extern int handle_one_term_event (struct tty_display_info *, Gpm_Event *, struct input_event *); +#ifndef HAVE_WINDOW_SYSTEM extern void term_mouse_moveto (int, int); +#endif /* The device for which we have enabled gpm support. */ extern struct tty_display_info *gpm_tty; @@ -660,4 +662,3 @@ extern unsigned char *encode_terminal_code (struct glyph *, int, #ifdef HAVE_GPM extern void close_gpm (int gpm_fd); #endif - |
