diff options
| author | Paul Eggert | 2014-06-08 11:27:22 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-06-08 11:27:22 -0700 |
| commit | ff2d0e8336c05cb7d3e86f7406784cefc1d6589e (patch) | |
| tree | 05c8974f47e1eee47c7ad5b39379a6687d15217d /src | |
| parent | 83f1450065c55a3e5dce5db0da737cb7a6a4d60c (diff) | |
| download | emacs-ff2d0e8336c05cb7d3e86f7406784cefc1d6589e.tar.gz emacs-ff2d0e8336c05cb7d3e86f7406784cefc1d6589e.zip | |
If a C name must be extern on some platforms, make it extern on all.
* dispextern.h (set_vertical_scroll_bar, erase_phys_cursor)
(load_color):
* font.h (ftxfont_driver) [HAVE_XFT]:
* keyboard.h (menu_items_inuse, ignore_mouse_drag_p, make_ctrl_char):
* lisp.h (get_frame_param):
* menu.h (tty_menu_show):
* process.h (conv_sockaddr_to_lisp, catch_child_signal):
* termhooks.h (encode_terminal_code):
* xterm.h (x_menu_wait_for_event):
Always declare.
* frame.c (get_frame_param):
* fringe.c (max_used_fringe_bitmap):
* ftxfont.c (ftxfont_driver):
* keyboard.c (ignore_mouse_drag_p, make_ctrl_char):
* menu.c (menu_items_inuse):
* process.c (conv_sockaddr_to_lisp, catch_child_signal):
* term.c (encode_terminal_code, tty_menu_show):
* xdisp.c (set_vertical_scroll_bar, erase_phys_cursor):
* xfaces.c (load_color):
* xmenu.c (x_menu_wait_for_event):
Now always extern.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 25 | ||||
| -rw-r--r-- | src/dispextern.h | 6 | ||||
| -rw-r--r-- | src/font.h | 3 | ||||
| -rw-r--r-- | src/frame.c | 3 | ||||
| -rw-r--r-- | src/fringe.c | 3 | ||||
| -rw-r--r-- | src/ftxfont.c | 3 | ||||
| -rw-r--r-- | src/keyboard.c | 6 | ||||
| -rw-r--r-- | src/keyboard.h | 6 | ||||
| -rw-r--r-- | src/lisp.h | 2 | ||||
| -rw-r--r-- | src/menu.c | 3 | ||||
| -rw-r--r-- | src/menu.h | 6 | ||||
| -rw-r--r-- | src/process.c | 6 | ||||
| -rw-r--r-- | src/process.h | 4 | ||||
| -rw-r--r-- | src/term.c | 6 | ||||
| -rw-r--r-- | src/termhooks.h | 2 | ||||
| -rw-r--r-- | src/xdisp.c | 6 | ||||
| -rw-r--r-- | src/xfaces.c | 3 | ||||
| -rw-r--r-- | src/xmenu.c | 3 | ||||
| -rw-r--r-- | src/xterm.h | 2 |
19 files changed, 29 insertions, 69 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2cdaf494aad..72aaea5eeb6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,28 @@ | |||
| 1 | 2014-06-08 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | If a C name must be extern on some platforms, make it extern on all. | ||
| 4 | * dispextern.h (set_vertical_scroll_bar, erase_phys_cursor) | ||
| 5 | (load_color): | ||
| 6 | * font.h (ftxfont_driver) [HAVE_XFT]: | ||
| 7 | * keyboard.h (menu_items_inuse, ignore_mouse_drag_p, make_ctrl_char): | ||
| 8 | * lisp.h (get_frame_param): | ||
| 9 | * menu.h (tty_menu_show): | ||
| 10 | * process.h (conv_sockaddr_to_lisp, catch_child_signal): | ||
| 11 | * termhooks.h (encode_terminal_code): | ||
| 12 | * xterm.h (x_menu_wait_for_event): | ||
| 13 | Always declare. | ||
| 14 | * frame.c (get_frame_param): | ||
| 15 | * fringe.c (max_used_fringe_bitmap): | ||
| 16 | * ftxfont.c (ftxfont_driver): | ||
| 17 | * keyboard.c (ignore_mouse_drag_p, make_ctrl_char): | ||
| 18 | * menu.c (menu_items_inuse): | ||
| 19 | * process.c (conv_sockaddr_to_lisp, catch_child_signal): | ||
| 20 | * term.c (encode_terminal_code, tty_menu_show): | ||
| 21 | * xdisp.c (set_vertical_scroll_bar, erase_phys_cursor): | ||
| 22 | * xfaces.c (load_color): | ||
| 23 | * xmenu.c (x_menu_wait_for_event): | ||
| 24 | Now always extern. | ||
| 25 | |||
| 1 | 2014-06-08 Dmitry Antipov <dmantipov@yandex.ru> | 26 | 2014-06-08 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 27 | ||
| 3 | Change object marking routines to minimize stack usage. | 28 | Change object marking routines to minimize stack usage. |
diff --git a/src/dispextern.h b/src/dispextern.h index 8ccc3d35d8c..ee17b65deaa 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -3163,9 +3163,7 @@ int default_line_pixel_height (struct window *); | |||
| 3163 | int display_prop_intangible_p (Lisp_Object, Lisp_Object, ptrdiff_t, ptrdiff_t); | 3163 | int display_prop_intangible_p (Lisp_Object, Lisp_Object, ptrdiff_t, ptrdiff_t); |
| 3164 | void resize_echo_area_exactly (void); | 3164 | void resize_echo_area_exactly (void); |
| 3165 | int resize_mini_window (struct window *, int); | 3165 | int resize_mini_window (struct window *, int); |
| 3166 | #if defined USE_TOOLKIT_SCROLL_BARS && !defined USE_GTK | ||
| 3167 | void set_vertical_scroll_bar (struct window *); | 3166 | void set_vertical_scroll_bar (struct window *); |
| 3168 | #endif | ||
| 3169 | int try_window (Lisp_Object, struct text_pos, int); | 3167 | int try_window (Lisp_Object, struct text_pos, int); |
| 3170 | void window_box (struct window *, enum glyph_row_area, | 3168 | void window_box (struct window *, enum glyph_row_area, |
| 3171 | int *, int *, int *, int *); | 3169 | int *, int *, int *, int *); |
| @@ -3238,9 +3236,7 @@ extern void draw_phys_cursor_glyph (struct window *, | |||
| 3238 | enum draw_glyphs_face); | 3236 | enum draw_glyphs_face); |
| 3239 | extern void get_phys_cursor_geometry (struct window *, struct glyph_row *, | 3237 | extern void get_phys_cursor_geometry (struct window *, struct glyph_row *, |
| 3240 | struct glyph *, int *, int *, int *); | 3238 | struct glyph *, int *, int *, int *); |
| 3241 | #if HAVE_NTGUI | ||
| 3242 | extern void erase_phys_cursor (struct window *); | 3239 | extern void erase_phys_cursor (struct window *); |
| 3243 | #endif | ||
| 3244 | extern void display_and_set_cursor (struct window *, bool, int, int, int, int); | 3240 | extern void display_and_set_cursor (struct window *, bool, int, int, int, int); |
| 3245 | extern void x_update_cursor (struct frame *, bool); | 3241 | extern void x_update_cursor (struct frame *, bool); |
| 3246 | extern void x_clear_cursor (struct window *); | 3242 | extern void x_clear_cursor (struct window *); |
| @@ -3354,10 +3350,8 @@ void update_face_from_frame_parameter (struct frame *, Lisp_Object, | |||
| 3354 | Lisp_Object); | 3350 | Lisp_Object); |
| 3355 | Lisp_Object tty_color_name (struct frame *, int); | 3351 | Lisp_Object tty_color_name (struct frame *, int); |
| 3356 | void clear_face_cache (int); | 3352 | void clear_face_cache (int); |
| 3357 | #ifdef MSDOS | ||
| 3358 | unsigned long load_color (struct frame *, struct face *, Lisp_Object, | 3353 | unsigned long load_color (struct frame *, struct face *, Lisp_Object, |
| 3359 | enum lface_attribute_index); | 3354 | enum lface_attribute_index); |
| 3360 | #endif | ||
| 3361 | char *choose_face_font (struct frame *, Lisp_Object *, Lisp_Object, | 3355 | char *choose_face_font (struct frame *, Lisp_Object *, Lisp_Object, |
| 3362 | int *); | 3356 | int *); |
| 3363 | void prepare_face_for_display (struct frame *, struct face *); | 3357 | void prepare_face_for_display (struct frame *, struct face *); |
diff --git a/src/font.h b/src/font.h index e2e36460583..4a525573cc2 100644 --- a/src/font.h +++ b/src/font.h | |||
| @@ -834,7 +834,8 @@ extern void syms_of_ftxfont (void); | |||
| 834 | extern Lisp_Object Qxft; | 834 | extern Lisp_Object Qxft; |
| 835 | extern struct font_driver xftfont_driver; | 835 | extern struct font_driver xftfont_driver; |
| 836 | extern void syms_of_xftfont (void); | 836 | extern void syms_of_xftfont (void); |
| 837 | #elif defined HAVE_FREETYPE | 837 | #endif |
| 838 | #if defined HAVE_FREETYPE || defined HAVE_XFT | ||
| 838 | extern struct font_driver ftxfont_driver; | 839 | extern struct font_driver ftxfont_driver; |
| 839 | #endif | 840 | #endif |
| 840 | #ifdef HAVE_BDFFONT | 841 | #ifdef HAVE_BDFFONT |
diff --git a/src/frame.c b/src/frame.c index 4575ac0553e..e75a74be938 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1965,9 +1965,6 @@ If there is no window system support, this function does nothing. */) | |||
| 1965 | /* Return the value of frame parameter PROP in frame FRAME. */ | 1965 | /* Return the value of frame parameter PROP in frame FRAME. */ |
| 1966 | 1966 | ||
| 1967 | #ifdef HAVE_WINDOW_SYSTEM | 1967 | #ifdef HAVE_WINDOW_SYSTEM |
| 1968 | #if !HAVE_NS && !HAVE_NTGUI | ||
| 1969 | static | ||
| 1970 | #endif | ||
| 1971 | Lisp_Object | 1968 | Lisp_Object |
| 1972 | get_frame_param (register struct frame *frame, Lisp_Object prop) | 1969 | get_frame_param (register struct frame *frame, Lisp_Object prop) |
| 1973 | { | 1970 | { |
diff --git a/src/fringe.c b/src/fringe.c index 1eae6b18493..7256987bcc2 100644 --- a/src/fringe.c +++ b/src/fringe.c | |||
| @@ -480,9 +480,6 @@ static struct fringe_bitmap **fringe_bitmaps; | |||
| 480 | static Lisp_Object *fringe_faces; | 480 | static Lisp_Object *fringe_faces; |
| 481 | static int max_fringe_bitmaps; | 481 | static int max_fringe_bitmaps; |
| 482 | 482 | ||
| 483 | #ifndef HAVE_NS | ||
| 484 | static | ||
| 485 | #endif | ||
| 486 | int max_used_fringe_bitmap = MAX_STANDARD_FRINGE_BITMAPS; | 483 | int max_used_fringe_bitmap = MAX_STANDARD_FRINGE_BITMAPS; |
| 487 | 484 | ||
| 488 | 485 | ||
diff --git a/src/ftxfont.c b/src/ftxfont.c index 9db7cbceb66..53f2616bb62 100644 --- a/src/ftxfont.c +++ b/src/ftxfont.c | |||
| @@ -37,9 +37,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 37 | 37 | ||
| 38 | static Lisp_Object Qftx; | 38 | static Lisp_Object Qftx; |
| 39 | 39 | ||
| 40 | #if defined HAVE_XFT || !defined HAVE_FREETYPE | ||
| 41 | static | ||
| 42 | #endif | ||
| 43 | struct font_driver ftxfont_driver; | 40 | struct font_driver ftxfont_driver; |
| 44 | 41 | ||
| 45 | struct ftxfont_frame_data | 42 | struct ftxfont_frame_data |
diff --git a/src/keyboard.c b/src/keyboard.c index 568c8203c7f..dcf89137a5c 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1286,9 +1286,6 @@ usage: (track-mouse BODY...) */) | |||
| 1286 | If ignore_mouse_drag_p is non-zero, ignore (implicit) mouse movement | 1286 | If ignore_mouse_drag_p is non-zero, ignore (implicit) mouse movement |
| 1287 | after resizing the tool-bar window. */ | 1287 | after resizing the tool-bar window. */ |
| 1288 | 1288 | ||
| 1289 | #if !defined HAVE_WINDOW_SYSTEM || defined USE_GTK || defined HAVE_NS | ||
| 1290 | static | ||
| 1291 | #endif | ||
| 1292 | bool ignore_mouse_drag_p; | 1289 | bool ignore_mouse_drag_p; |
| 1293 | 1290 | ||
| 1294 | static struct frame * | 1291 | static struct frame * |
| @@ -2085,9 +2082,6 @@ bind_polling_period (int n) | |||
| 2085 | 2082 | ||
| 2086 | /* Apply the control modifier to CHARACTER. */ | 2083 | /* Apply the control modifier to CHARACTER. */ |
| 2087 | 2084 | ||
| 2088 | #ifndef HAVE_NTGUI | ||
| 2089 | static | ||
| 2090 | #endif | ||
| 2091 | int | 2085 | int |
| 2092 | make_ctrl_char (int c) | 2086 | make_ctrl_char (int c) |
| 2093 | { | 2087 | { |
diff --git a/src/keyboard.h b/src/keyboard.h index 8a72d03416f..da83b9b01ed 100644 --- a/src/keyboard.h +++ b/src/keyboard.h | |||
| @@ -305,9 +305,7 @@ extern Lisp_Object menu_items; | |||
| 305 | 305 | ||
| 306 | /* If non-nil, means that the global vars defined here are already in use. | 306 | /* If non-nil, means that the global vars defined here are already in use. |
| 307 | Used to detect cases where we try to re-enter this non-reentrant code. */ | 307 | Used to detect cases where we try to re-enter this non-reentrant code. */ |
| 308 | #if defined USE_GTK || defined USE_MOTIF | ||
| 309 | extern Lisp_Object menu_items_inuse; | 308 | extern Lisp_Object menu_items_inuse; |
| 310 | #endif | ||
| 311 | 309 | ||
| 312 | /* Number of slots currently allocated in menu_items. */ | 310 | /* Number of slots currently allocated in menu_items. */ |
| 313 | extern int menu_items_allocated; | 311 | extern int menu_items_allocated; |
| @@ -415,9 +413,7 @@ extern bool waiting_for_input; | |||
| 415 | happens. */ | 413 | happens. */ |
| 416 | extern struct timespec *input_available_clear_time; | 414 | extern struct timespec *input_available_clear_time; |
| 417 | 415 | ||
| 418 | #if defined HAVE_WINDOW_SYSTEM && !defined USE_GTK && !defined HAVE_NS | ||
| 419 | extern bool ignore_mouse_drag_p; | 416 | extern bool ignore_mouse_drag_p; |
| 420 | #endif | ||
| 421 | 417 | ||
| 422 | /* The primary selection. */ | 418 | /* The primary selection. */ |
| 423 | extern Lisp_Object QPRIMARY; | 419 | extern Lisp_Object QPRIMARY; |
| @@ -467,9 +463,7 @@ extern bool input_polling_used (void); | |||
| 467 | extern void clear_input_pending (void); | 463 | extern void clear_input_pending (void); |
| 468 | extern bool requeued_events_pending_p (void); | 464 | extern bool requeued_events_pending_p (void); |
| 469 | extern void bind_polling_period (int); | 465 | extern void bind_polling_period (int); |
| 470 | #if HAVE_NTGUI | ||
| 471 | extern int make_ctrl_char (int) ATTRIBUTE_CONST; | 466 | extern int make_ctrl_char (int) ATTRIBUTE_CONST; |
| 472 | #endif | ||
| 473 | extern void stuff_buffered_input (Lisp_Object); | 467 | extern void stuff_buffered_input (Lisp_Object); |
| 474 | extern void clear_waiting_for_input (void); | 468 | extern void clear_waiting_for_input (void); |
| 475 | extern void swallow_events (bool); | 469 | extern void swallow_events (bool); |
diff --git a/src/lisp.h b/src/lisp.h index 6d397169e87..67bbfa7c9b9 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -4127,9 +4127,7 @@ extern void set_frame_param (struct frame *, Lisp_Object, Lisp_Object); | |||
| 4127 | extern void store_frame_param (struct frame *, Lisp_Object, Lisp_Object); | 4127 | extern void store_frame_param (struct frame *, Lisp_Object, Lisp_Object); |
| 4128 | extern void store_in_alist (Lisp_Object *, Lisp_Object, Lisp_Object); | 4128 | extern void store_in_alist (Lisp_Object *, Lisp_Object, Lisp_Object); |
| 4129 | extern Lisp_Object do_switch_frame (Lisp_Object, int, int, Lisp_Object); | 4129 | extern Lisp_Object do_switch_frame (Lisp_Object, int, int, Lisp_Object); |
| 4130 | #if HAVE_NS || HAVE_NTGUI | ||
| 4131 | extern Lisp_Object get_frame_param (struct frame *, Lisp_Object); | 4130 | extern Lisp_Object get_frame_param (struct frame *, Lisp_Object); |
| 4132 | #endif | ||
| 4133 | extern void frames_discard_buffer (Lisp_Object); | 4131 | extern void frames_discard_buffer (Lisp_Object); |
| 4134 | extern void syms_of_frame (void); | 4132 | extern void syms_of_frame (void); |
| 4135 | 4133 | ||
diff --git a/src/menu.c b/src/menu.c index 552ce1f2818..96f53903201 100644 --- a/src/menu.c +++ b/src/menu.c | |||
| @@ -66,9 +66,6 @@ Lisp_Object menu_items; | |||
| 66 | 66 | ||
| 67 | /* If non-nil, means that the global vars defined here are already in use. | 67 | /* If non-nil, means that the global vars defined here are already in use. |
| 68 | Used to detect cases where we try to re-enter this non-reentrant code. */ | 68 | Used to detect cases where we try to re-enter this non-reentrant code. */ |
| 69 | #if ! (defined USE_GTK || defined USE_MOTIF) | ||
| 70 | static | ||
| 71 | #endif | ||
| 72 | Lisp_Object menu_items_inuse; | 69 | Lisp_Object menu_items_inuse; |
| 73 | 70 | ||
| 74 | /* Number of slots currently allocated in menu_items. */ | 71 | /* Number of slots currently allocated in menu_items. */ |
diff --git a/src/menu.h b/src/menu.h index 42038f54b67..643ff40fef8 100644 --- a/src/menu.h +++ b/src/menu.h | |||
| @@ -64,14 +64,12 @@ extern Lisp_Object x_menu_show (struct frame *, int, int, int, | |||
| 64 | #ifdef HAVE_NTGUI | 64 | #ifdef HAVE_NTGUI |
| 65 | extern Lisp_Object w32_menu_show (struct frame *, int, int, int, | 65 | extern Lisp_Object w32_menu_show (struct frame *, int, int, int, |
| 66 | Lisp_Object, const char **); | 66 | Lisp_Object, const char **); |
| 67 | #ifdef WINDOWSNT | ||
| 68 | extern Lisp_Object tty_menu_show (struct frame *, int, int, int, | ||
| 69 | Lisp_Object, const char **); | ||
| 70 | #endif | ||
| 71 | #endif | 67 | #endif |
| 72 | #ifdef HAVE_NS | 68 | #ifdef HAVE_NS |
| 73 | extern Lisp_Object ns_menu_show (struct frame *, int, int, int, | 69 | extern Lisp_Object ns_menu_show (struct frame *, int, int, int, |
| 74 | Lisp_Object, const char **); | 70 | Lisp_Object, const char **); |
| 75 | #endif | 71 | #endif |
| 72 | extern Lisp_Object tty_menu_show (struct frame *, int, int, int, | ||
| 73 | Lisp_Object, const char **); | ||
| 76 | extern ptrdiff_t menu_item_width (const unsigned char *); | 74 | extern ptrdiff_t menu_item_width (const unsigned char *); |
| 77 | #endif /* MENU_H */ | 75 | #endif /* MENU_H */ |
diff --git a/src/process.c b/src/process.c index 7f9b5ac59d1..b8b8eaaee5b 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1957,9 +1957,6 @@ create_pty (Lisp_Object process) | |||
| 1957 | /* Convert an internal struct sockaddr to a lisp object (vector or string). | 1957 | /* Convert an internal struct sockaddr to a lisp object (vector or string). |
| 1958 | The address family of sa is not included in the result. */ | 1958 | The address family of sa is not included in the result. */ |
| 1959 | 1959 | ||
| 1960 | #ifndef WINDOWSNT | ||
| 1961 | static | ||
| 1962 | #endif | ||
| 1963 | Lisp_Object | 1960 | Lisp_Object |
| 1964 | conv_sockaddr_to_lisp (struct sockaddr *sa, int len) | 1961 | conv_sockaddr_to_lisp (struct sockaddr *sa, int len) |
| 1965 | { | 1962 | { |
| @@ -7051,9 +7048,6 @@ integer or floating point values. | |||
| 7051 | futz with the SIGCHLD handler, but before Emacs forks any children. | 7048 | futz with the SIGCHLD handler, but before Emacs forks any children. |
| 7052 | This function's caller should block SIGCHLD. */ | 7049 | This function's caller should block SIGCHLD. */ |
| 7053 | 7050 | ||
| 7054 | #ifndef NS_IMPL_GNUSTEP | ||
| 7055 | static | ||
| 7056 | #endif | ||
| 7057 | void | 7051 | void |
| 7058 | catch_child_signal (void) | 7052 | catch_child_signal (void) |
| 7059 | { | 7053 | { |
diff --git a/src/process.h b/src/process.h index 9181139226d..273ad9267d6 100644 --- a/src/process.h +++ b/src/process.h | |||
| @@ -225,9 +225,7 @@ extern Lisp_Object system_process_attributes (Lisp_Object); | |||
| 225 | 225 | ||
| 226 | extern void record_deleted_pid (pid_t, Lisp_Object); | 226 | extern void record_deleted_pid (pid_t, Lisp_Object); |
| 227 | struct sockaddr; | 227 | struct sockaddr; |
| 228 | #ifdef WINDOWSNT | ||
| 229 | extern Lisp_Object conv_sockaddr_to_lisp (struct sockaddr *, int); | 228 | extern Lisp_Object conv_sockaddr_to_lisp (struct sockaddr *, int); |
| 230 | #endif | ||
| 231 | extern void hold_keyboard_input (void); | 229 | extern void hold_keyboard_input (void); |
| 232 | extern void unhold_keyboard_input (void); | 230 | extern void unhold_keyboard_input (void); |
| 233 | extern bool kbd_on_hold_p (void); | 231 | extern bool kbd_on_hold_p (void); |
| @@ -238,9 +236,7 @@ extern void add_read_fd (int fd, fd_callback func, void *data); | |||
| 238 | extern void delete_read_fd (int fd); | 236 | extern void delete_read_fd (int fd); |
| 239 | extern void add_write_fd (int fd, fd_callback func, void *data); | 237 | extern void add_write_fd (int fd, fd_callback func, void *data); |
| 240 | extern void delete_write_fd (int fd); | 238 | extern void delete_write_fd (int fd); |
| 241 | #ifdef NS_IMPL_GNUSTEP | ||
| 242 | extern void catch_child_signal (void); | 239 | extern void catch_child_signal (void); |
| 243 | #endif | ||
| 244 | 240 | ||
| 245 | #ifdef WINDOWSNT | 241 | #ifdef WINDOWSNT |
| 246 | extern Lisp_Object network_interface_list (void); | 242 | extern Lisp_Object network_interface_list (void); |
diff --git a/src/term.c b/src/term.c index 37a938e338d..642907979aa 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -527,9 +527,6 @@ static ptrdiff_t encode_terminal_dst_size; | |||
| 527 | Set CODING->produced to the byte-length of the resulting byte | 527 | Set CODING->produced to the byte-length of the resulting byte |
| 528 | sequence, and return a pointer to that byte sequence. */ | 528 | sequence, and return a pointer to that byte sequence. */ |
| 529 | 529 | ||
| 530 | #ifndef DOS_NT | ||
| 531 | static | ||
| 532 | #endif | ||
| 533 | unsigned char * | 530 | unsigned char * |
| 534 | encode_terminal_code (struct glyph *src, int src_len, | 531 | encode_terminal_code (struct glyph *src, int src_len, |
| 535 | struct coding_system *coding) | 532 | struct coding_system *coding) |
| @@ -3583,9 +3580,6 @@ tty_menu_new_item_coords (struct frame *f, int which, int *x, int *y) | |||
| 3583 | } | 3580 | } |
| 3584 | 3581 | ||
| 3585 | /* WINDOWSNT uses this as menu_show_hook, see w32console.c. */ | 3582 | /* WINDOWSNT uses this as menu_show_hook, see w32console.c. */ |
| 3586 | #ifndef WINDOWSNT | ||
| 3587 | static | ||
| 3588 | #endif | ||
| 3589 | Lisp_Object | 3583 | Lisp_Object |
| 3590 | tty_menu_show (struct frame *f, int x, int y, int menuflags, | 3584 | tty_menu_show (struct frame *f, int x, int y, int menuflags, |
| 3591 | Lisp_Object title, const char **error_name) | 3585 | Lisp_Object title, const char **error_name) |
diff --git a/src/termhooks.h b/src/termhooks.h index 7aef3ae619d..f9bf9d785b6 100644 --- a/src/termhooks.h +++ b/src/termhooks.h | |||
| @@ -651,10 +651,8 @@ extern void delete_terminal (struct terminal *); | |||
| 651 | /* The initial terminal device, created by initial_term_init. */ | 651 | /* The initial terminal device, created by initial_term_init. */ |
| 652 | extern struct terminal *initial_terminal; | 652 | extern struct terminal *initial_terminal; |
| 653 | 653 | ||
| 654 | #ifdef DOS_NT | ||
| 655 | extern unsigned char *encode_terminal_code (struct glyph *, int, | 654 | extern unsigned char *encode_terminal_code (struct glyph *, int, |
| 656 | struct coding_system *); | 655 | struct coding_system *); |
| 657 | #endif | ||
| 658 | 656 | ||
| 659 | #ifdef HAVE_GPM | 657 | #ifdef HAVE_GPM |
| 660 | extern void close_gpm (int gpm_fd); | 658 | extern void close_gpm (int gpm_fd); |
diff --git a/src/xdisp.c b/src/xdisp.c index fbe87ed847a..1b86ec7d9d3 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -15710,9 +15710,6 @@ try_cursor_movement (Lisp_Object window, struct text_pos startp, int *scroll_ste | |||
| 15710 | return rc; | 15710 | return rc; |
| 15711 | } | 15711 | } |
| 15712 | 15712 | ||
| 15713 | #if !defined USE_TOOLKIT_SCROLL_BARS || defined USE_GTK | ||
| 15714 | static | ||
| 15715 | #endif | ||
| 15716 | void | 15713 | void |
| 15717 | set_vertical_scroll_bar (struct window *w) | 15714 | set_vertical_scroll_bar (struct window *w) |
| 15718 | { | 15715 | { |
| @@ -27055,9 +27052,6 @@ draw_phys_cursor_glyph (struct window *w, struct glyph_row *row, | |||
| 27055 | 27052 | ||
| 27056 | /* Erase the image of a cursor of window W from the screen. */ | 27053 | /* Erase the image of a cursor of window W from the screen. */ |
| 27057 | 27054 | ||
| 27058 | #ifndef HAVE_NTGUI | ||
| 27059 | static | ||
| 27060 | #endif | ||
| 27061 | void | 27055 | void |
| 27062 | erase_phys_cursor (struct window *w) | 27056 | erase_phys_cursor (struct window *w) |
| 27063 | { | 27057 | { |
diff --git a/src/xfaces.c b/src/xfaces.c index 4e599d0bd05..1d869d90ac3 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -1248,9 +1248,6 @@ load_color2 (struct frame *f, struct face *face, Lisp_Object name, | |||
| 1248 | record that fact in flags of the face so that we don't try to free | 1248 | record that fact in flags of the face so that we don't try to free |
| 1249 | these colors. */ | 1249 | these colors. */ |
| 1250 | 1250 | ||
| 1251 | #ifndef MSDOS | ||
| 1252 | static | ||
| 1253 | #endif | ||
| 1254 | unsigned long | 1251 | unsigned long |
| 1255 | load_color (struct frame *f, struct face *face, Lisp_Object name, | 1252 | load_color (struct frame *f, struct face *face, Lisp_Object name, |
| 1256 | enum lface_attribute_index target_index) | 1253 | enum lface_attribute_index target_index) |
diff --git a/src/xmenu.c b/src/xmenu.c index 18793457dad..2d41350e737 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -208,9 +208,6 @@ x_menu_set_in_use (int in_use) | |||
| 208 | 208 | ||
| 209 | /* Wait for an X event to arrive or for a timer to expire. */ | 209 | /* Wait for an X event to arrive or for a timer to expire. */ |
| 210 | 210 | ||
| 211 | #ifndef USE_MOTIF | ||
| 212 | static | ||
| 213 | #endif | ||
| 214 | void | 211 | void |
| 215 | x_menu_wait_for_event (void *data) | 212 | x_menu_wait_for_event (void *data) |
| 216 | { | 213 | { |
diff --git a/src/xterm.h b/src/xterm.h index bd27c1b201b..9daa478c964 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -1031,9 +1031,7 @@ extern Lisp_Object xw_popup_dialog (struct frame *, Lisp_Object, Lisp_Object); | |||
| 1031 | #if defined USE_GTK || defined USE_MOTIF | 1031 | #if defined USE_GTK || defined USE_MOTIF |
| 1032 | extern void x_menu_set_in_use (int); | 1032 | extern void x_menu_set_in_use (int); |
| 1033 | #endif | 1033 | #endif |
| 1034 | #ifdef USE_MOTIF | ||
| 1035 | extern void x_menu_wait_for_event (void *data); | 1034 | extern void x_menu_wait_for_event (void *data); |
| 1036 | #endif | ||
| 1037 | extern int popup_activated (void); | 1035 | extern int popup_activated (void); |
| 1038 | extern void initialize_frame_menubar (struct frame *); | 1036 | extern void initialize_frame_menubar (struct frame *); |
| 1039 | 1037 | ||