aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-04-13 19:52:33 -0700
committerPaul Eggert2011-04-13 19:52:33 -0700
commit64520e5cf9ad7cba4f23288bffeec1aa2fff6c49 (patch)
treeb445ada9d58f3bde565681126314b49cc3c7852f /src
parent1fa530214b68560d962c10c786a562f11a479444 (diff)
downloademacs-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')
-rw-r--r--src/ChangeLog11
-rw-r--r--src/dispextern.h4
-rw-r--r--src/term.c17
-rw-r--r--src/termhooks.h3
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 @@
12011-04-14 Paul Eggert <eggert@cs.ucla.edu> 12011-04-14 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * term.c: Make symbols static if they're not exported.
4 (tty_turn_off_highlight, get_tty_terminal, max_frame_cols):
5 (max_frame_lines, tty_set_terminal_modes):
6 (tty_reset_terminal_modes, tty_turn_off_highlight):
7 (get_tty_terminal): Now static.
8 (term_mouse_moveto): Do not define if HAVE_WINDOW_SYSTEM.
9 * termhooks.h (term_mouse_moveto): Do not declare if
10 HAVE_WINDOW_SYSTEMM.
11 * dispextern.h (tty_set_terminal_modes, tty_reset_terminal_modes):
12 (tty_turn_off_highlight, get_tty_terminal): Remove decls.
13
3 * sysdep.c: Make symbols static if they're not exported. 14 * sysdep.c: Make symbols static if they're not exported.
4 (emacs_get_tty, emacs_set_tty, old_fcntl_flags, old_fcntl_owner): 15 (emacs_get_tty, emacs_set_tty, old_fcntl_flags, old_fcntl_owner):
5 Now static. 16 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);
3282 3282
3283/* Defined in term.c */ 3283/* Defined in term.c */
3284 3284
3285extern void tty_set_terminal_modes (struct terminal *);
3286extern void tty_reset_terminal_modes (struct terminal *);
3287extern void tty_turn_off_insert (struct tty_display_info *); 3285extern void tty_turn_off_insert (struct tty_display_info *);
3288extern void tty_turn_off_highlight (struct tty_display_info *);
3289extern int string_cost (const char *); 3286extern int string_cost (const char *);
3290extern int per_line_cost (const char *); 3287extern int per_line_cost (const char *);
3291extern void calculate_costs (struct frame *); 3288extern void calculate_costs (struct frame *);
@@ -3293,7 +3290,6 @@ extern void produce_glyphs (struct it *);
3293extern void produce_special_glyphs (struct it *, enum display_element_type); 3290extern void produce_special_glyphs (struct it *, enum display_element_type);
3294extern int tty_capable_p (struct tty_display_info *, unsigned, unsigned long, unsigned long); 3291extern int tty_capable_p (struct tty_display_info *, unsigned, unsigned long, unsigned long);
3295extern void set_tty_color_mode (struct tty_display_info *, struct frame *); 3292extern void set_tty_color_mode (struct tty_display_info *, struct frame *);
3296extern struct terminal *get_tty_terminal (Lisp_Object, int);
3297extern struct terminal *get_named_tty (const char *); 3293extern struct terminal *get_named_tty (const char *);
3298EXFUN (Ftty_type, 1); 3294EXFUN (Ftty_type, 1);
3299extern void create_tty_output (struct frame *); 3295extern 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;
77static void tty_set_scroll_region (struct frame *f, int start, int stop); 77static void tty_set_scroll_region (struct frame *f, int start, int stop);
78static void turn_on_face (struct frame *, int face_id); 78static void turn_on_face (struct frame *, int face_id);
79static void turn_off_face (struct frame *, int face_id); 79static void turn_off_face (struct frame *, int face_id);
80static void tty_turn_off_highlight (struct tty_display_info *);
80static void tty_show_cursor (struct tty_display_info *); 81static void tty_show_cursor (struct tty_display_info *);
81static void tty_hide_cursor (struct tty_display_info *); 82static void tty_hide_cursor (struct tty_display_info *);
82static void tty_background_highlight (struct tty_display_info *tty); 83static void tty_background_highlight (struct tty_display_info *tty);
84static struct terminal *get_tty_terminal (Lisp_Object, int);
83static void clear_tty_hooks (struct terminal *terminal); 85static void clear_tty_hooks (struct terminal *terminal);
84static void set_tty_hooks (struct terminal *terminal); 86static void set_tty_hooks (struct terminal *terminal);
85static void dissociate_if_controlling_tty (int fd); 87static 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
136int max_frame_cols; 138static 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
140int max_frame_lines; 142static 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
176void 178static void
177tty_set_terminal_modes (struct terminal *terminal) 179tty_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
204void 206static void
205tty_reset_terminal_modes (struct terminal *terminal) 207tty_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
289void 291static void
290tty_turn_off_highlight (struct tty_display_info *tty) 292tty_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
2371struct terminal * 2373static struct terminal *
2372get_tty_terminal (Lisp_Object terminal, int throw) 2374get_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
2617void 2621void
2618term_mouse_moveto (int x, int y) 2622term_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. */
2632void 2637void
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 {
306#ifdef HAVE_GPM 306#ifdef HAVE_GPM
307#include <gpm.h> 307#include <gpm.h>
308extern int handle_one_term_event (struct tty_display_info *, Gpm_Event *, struct input_event *); 308extern int handle_one_term_event (struct tty_display_info *, Gpm_Event *, struct input_event *);
309#ifndef HAVE_WINDOW_SYSTEM
309extern void term_mouse_moveto (int, int); 310extern void term_mouse_moveto (int, int);
311#endif
310 312
311/* The device for which we have enabled gpm support. */ 313/* The device for which we have enabled gpm support. */
312extern struct tty_display_info *gpm_tty; 314extern struct tty_display_info *gpm_tty;
@@ -660,4 +662,3 @@ extern unsigned char *encode_terminal_code (struct glyph *, int,
660#ifdef HAVE_GPM 662#ifdef HAVE_GPM
661extern void close_gpm (int gpm_fd); 663extern void close_gpm (int gpm_fd);
662#endif 664#endif
663