aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorAndreas Schwab1998-04-14 12:25:56 +0000
committerAndreas Schwab1998-04-14 12:25:56 +0000
commitdfcf069d565c347abf3cb7cec80e6ed8432037ba (patch)
treecd9620f10084ffa69d7d6ae26284ffd69d4c07a5 /src/xterm.c
parent0f94f94657ad7a6a68e64c612285a5e06152def2 (diff)
downloademacs-dfcf069d565c347abf3cb7cec80e6ed8432037ba.tar.gz
emacs-dfcf069d565c347abf3cb7cec80e6ed8432037ba.zip
Fix -Wimplicit warnings.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c62
1 files changed, 44 insertions, 18 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 52cb889d4c7..4afe386d39a 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -86,6 +86,7 @@ Boston, MA 02111-1307, USA. */
86#include "window.h" 86#include "window.h"
87#include "keyboard.h" 87#include "keyboard.h"
88#include "intervals.h" 88#include "intervals.h"
89#include "process.h"
89 90
90#ifdef USE_X_TOOLKIT 91#ifdef USE_X_TOOLKIT
91#include <X11/Shell.h> 92#include <X11/Shell.h>
@@ -147,7 +148,7 @@ Lisp_Object x_display_name_list;
147 is the frame to apply to. */ 148 is the frame to apply to. */
148extern struct frame *updating_frame; 149extern struct frame *updating_frame;
149 150
150extern waiting_for_input; 151extern int waiting_for_input;
151 152
152/* This is a frame waiting to be autoraised, within XTread_socket. */ 153/* This is a frame waiting to be autoraised, within XTread_socket. */
153struct frame *pending_autoraise_frame; 154struct frame *pending_autoraise_frame;
@@ -265,8 +266,8 @@ static void clear_mouse_face ();
265static void show_mouse_face (); 266static void show_mouse_face ();
266static void do_line_dance (); 267static void do_line_dance ();
267 268
268static int XTcursor_to (); 269static void XTcursor_to ();
269static int XTclear_end_of_line (); 270static void XTclear_end_of_line ();
270static int x_io_error_quitter (); 271static int x_io_error_quitter ();
271int x_catch_errors (); 272int x_catch_errors ();
272void x_uncatch_errors (); 273void x_uncatch_errors ();
@@ -323,7 +324,7 @@ x_display_info_for_display (dpy)
323 should never be called except during an update, the only exceptions 324 should never be called except during an update, the only exceptions
324 being XTcursor_to, XTwrite_glyphs and XTreassert_line_highlight. */ 325 being XTcursor_to, XTwrite_glyphs and XTreassert_line_highlight. */
325 326
326static 327static void
327XTupdate_begin (f) 328XTupdate_begin (f)
328 struct frame *f; 329 struct frame *f;
329{ 330{
@@ -383,7 +384,7 @@ XTupdate_begin (f)
383 UNBLOCK_INPUT; 384 UNBLOCK_INPUT;
384} 385}
385 386
386static 387static void
387XTupdate_end (f) 388XTupdate_end (f)
388 struct frame *f; 389 struct frame *f;
389{ 390{
@@ -413,7 +414,7 @@ XTupdate_end (f)
413 414
414/* This is called after a redisplay on frame F. */ 415/* This is called after a redisplay on frame F. */
415 416
416static 417static void
417XTframe_up_to_date (f) 418XTframe_up_to_date (f)
418 FRAME_PTR f; 419 FRAME_PTR f;
419{ 420{
@@ -434,6 +435,7 @@ XTframe_up_to_date (f)
434 Call this when about to modify line at position VPOS 435 Call this when about to modify line at position VPOS
435 and not change whether it is highlighted. */ 436 and not change whether it is highlighted. */
436 437
438void
437XTreassert_line_highlight (new, vpos) 439XTreassert_line_highlight (new, vpos)
438 int new, vpos; 440 int new, vpos;
439{ 441{
@@ -443,7 +445,7 @@ XTreassert_line_highlight (new, vpos)
443/* Call this when about to modify line at position VPOS 445/* Call this when about to modify line at position VPOS
444 and change whether it is highlighted. */ 446 and change whether it is highlighted. */
445 447
446static 448static void
447XTchange_line_highlight (new_highlight, vpos, first_unused_hpos) 449XTchange_line_highlight (new_highlight, vpos, first_unused_hpos)
448 int new_highlight, vpos, first_unused_hpos; 450 int new_highlight, vpos, first_unused_hpos;
449{ 451{
@@ -456,7 +458,7 @@ XTchange_line_highlight (new_highlight, vpos, first_unused_hpos)
456 When starting Emacs, no X window is mapped. And nothing must be done 458 When starting Emacs, no X window is mapped. And nothing must be done
457 to Emacs's own window if it is suspended (though that rarely happens). */ 459 to Emacs's own window if it is suspended (though that rarely happens). */
458 460
459static 461static void
460XTset_terminal_modes () 462XTset_terminal_modes ()
461{ 463{
462} 464}
@@ -465,7 +467,7 @@ XTset_terminal_modes ()
465 Exiting will make the X-windows go away, and suspending 467 Exiting will make the X-windows go away, and suspending
466 requires no action. */ 468 requires no action. */
467 469
468static 470static void
469XTreset_terminal_modes () 471XTreset_terminal_modes ()
470{ 472{
471/* XTclear_frame (); */ 473/* XTclear_frame (); */
@@ -475,7 +477,7 @@ XTreset_terminal_modes ()
475 This is where display update commands will take effect. 477 This is where display update commands will take effect.
476 This does not affect the place where the cursor-box is displayed. */ 478 This does not affect the place where the cursor-box is displayed. */
477 479
478static int 480static void
479XTcursor_to (row, col) 481XTcursor_to (row, col)
480 register int row, col; 482 register int row, col;
481{ 483{
@@ -1184,7 +1186,7 @@ dumpglyphs (f, left, top, gp, n, hl, font)
1184 `highlight', set up by XTreassert_line_highlight or XTchange_line_highlight, 1186 `highlight', set up by XTreassert_line_highlight or XTchange_line_highlight,
1185 controls the pixel values used for foreground and background. */ 1187 controls the pixel values used for foreground and background. */
1186 1188
1187static 1189static void
1188XTwrite_glyphs (start, len) 1190XTwrite_glyphs (start, len)
1189 register GLYPH *start; 1191 register GLYPH *start;
1190 int len; 1192 int len;
@@ -1230,7 +1232,7 @@ XTwrite_glyphs (start, len)
1230 to column FIRST_UNUSED (exclusive). The idea is that everything 1232 to column FIRST_UNUSED (exclusive). The idea is that everything
1231 from FIRST_UNUSED onward is already erased. */ 1233 from FIRST_UNUSED onward is already erased. */
1232 1234
1233static 1235static void
1234XTclear_end_of_line (first_unused) 1236XTclear_end_of_line (first_unused)
1235 register int first_unused; 1237 register int first_unused;
1236{ 1238{
@@ -1272,7 +1274,7 @@ XTclear_end_of_line (first_unused)
1272 UNBLOCK_INPUT; 1274 UNBLOCK_INPUT;
1273} 1275}
1274 1276
1275static 1277static void
1276XTclear_frame () 1278XTclear_frame ()
1277{ 1279{
1278 int mask; 1280 int mask;
@@ -1508,6 +1510,7 @@ timeval_subtract (result, x, y)
1508 return x.tv_sec < y.tv_sec; 1510 return x.tv_sec < y.tv_sec;
1509} 1511}
1510 1512
1513void
1511XTflash (f) 1514XTflash (f)
1512 struct frame *f; 1515 struct frame *f;
1513{ 1516{
@@ -1635,6 +1638,7 @@ XTflash (f)
1635 1638
1636#define XRINGBELL XBell (FRAME_X_DISPLAY (selected_frame), 0) 1639#define XRINGBELL XBell (FRAME_X_DISPLAY (selected_frame), 0)
1637 1640
1641void
1638XTring_bell () 1642XTring_bell ()
1639{ 1643{
1640 if (FRAME_X_DISPLAY (selected_frame) == 0) 1644 if (FRAME_X_DISPLAY (selected_frame) == 0)
@@ -1657,7 +1661,7 @@ XTring_bell ()
1657 These are not supposed to be used because we are supposed to turn 1661 These are not supposed to be used because we are supposed to turn
1658 off the feature of using them. */ 1662 off the feature of using them. */
1659 1663
1660static 1664static void
1661XTinsert_glyphs (start, len) 1665XTinsert_glyphs (start, len)
1662 register char *start; 1666 register char *start;
1663 register int len; 1667 register int len;
@@ -1665,7 +1669,7 @@ XTinsert_glyphs (start, len)
1665 abort (); 1669 abort ();
1666} 1670}
1667 1671
1668static 1672static void
1669XTdelete_glyphs (n) 1673XTdelete_glyphs (n)
1670 register int n; 1674 register int n;
1671{ 1675{
@@ -1677,7 +1681,7 @@ XTdelete_glyphs (n)
1677 This, and those operations, are used only within an update 1681 This, and those operations, are used only within an update
1678 that is bounded by calls to XTupdate_begin and XTupdate_end. */ 1682 that is bounded by calls to XTupdate_begin and XTupdate_end. */
1679 1683
1680static 1684static void
1681XTset_terminal_window (n) 1685XTset_terminal_window (n)
1682 register int n; 1686 register int n;
1683{ 1687{
@@ -1708,6 +1712,7 @@ static int line_dance_in_progress;
1708 1712
1709/* Perform an insert-lines or delete-lines operation, 1713/* Perform an insert-lines or delete-lines operation,
1710 inserting N lines or deleting -N lines at vertical position VPOS. */ 1714 inserting N lines or deleting -N lines at vertical position VPOS. */
1715void
1711XTins_del_lines (vpos, n) 1716XTins_del_lines (vpos, n)
1712 int vpos, n; 1717 int vpos, n;
1713{ 1718{
@@ -2693,6 +2698,7 @@ clear_mouse_face (dpyinfo)
2693/* Just discard the mouse face information for frame F, if any. 2698/* Just discard the mouse face information for frame F, if any.
2694 This is used when the size of F is changed. */ 2699 This is used when the size of F is changed. */
2695 2700
2701void
2696cancel_mouse_face (f) 2702cancel_mouse_face (f)
2697 FRAME_PTR f; 2703 FRAME_PTR f;
2698{ 2704{
@@ -3560,6 +3566,7 @@ x_scroll_bar_report_motion (fp, bar_window, part, x, y, time)
3560 Clear out the scroll bars, and ask for expose events, so we can 3566 Clear out the scroll bars, and ask for expose events, so we can
3561 redraw them. */ 3567 redraw them. */
3562 3568
3569void
3563x_scroll_bar_clear (f) 3570x_scroll_bar_clear (f)
3564 FRAME_PTR f; 3571 FRAME_PTR f;
3565{ 3572{
@@ -3959,7 +3966,7 @@ XTread_socket (sd, bufp, numchars, expected)
3959 if (! x_window_to_frame (dpyinfo, event.xselection.requestor)) 3966 if (! x_window_to_frame (dpyinfo, event.xselection.requestor))
3960 goto OTHER; 3967 goto OTHER;
3961#endif /* not USE_X_TOOLKIT */ 3968#endif /* not USE_X_TOOLKIT */
3962 x_handle_selection_notify (&event); 3969 x_handle_selection_notify (&event.xselection);
3963 break; 3970 break;
3964 3971
3965 case SelectionClear: /* Someone has grabbed ownership. */ 3972 case SelectionClear: /* Someone has grabbed ownership. */
@@ -4020,7 +4027,7 @@ XTread_socket (sd, bufp, numchars, expected)
4020 if (!x_any_window_to_frame (dpyinfo, event.xproperty.window)) 4027 if (!x_any_window_to_frame (dpyinfo, event.xproperty.window))
4021 goto OTHER; 4028 goto OTHER;
4022#endif /* not USE_X_TOOLKIT */ 4029#endif /* not USE_X_TOOLKIT */
4023 x_handle_property_notify (&event); 4030 x_handle_property_notify (&event.xproperty);
4024 break; 4031 break;
4025 4032
4026 case ReparentNotify: 4033 case ReparentNotify:
@@ -4896,6 +4903,7 @@ x_display_box_cursor (f, on, x, y)
4896/* Display the cursor on frame F, or clear it, according to ON. 4903/* Display the cursor on frame F, or clear it, according to ON.
4897 Also set the frame's cursor position to X and Y. */ 4904 Also set the frame's cursor position to X and Y. */
4898 4905
4906void
4899x_display_cursor (f, on, x, y) 4907x_display_cursor (f, on, x, y)
4900 struct frame *f; 4908 struct frame *f;
4901 int on; 4909 int on;
@@ -4921,6 +4929,7 @@ x_display_cursor (f, on, x, y)
4921/* Display the cursor on frame F, or clear it, according to ON. 4929/* Display the cursor on frame F, or clear it, according to ON.
4922 Don't change the cursor's position. */ 4930 Don't change the cursor's position. */
4923 4931
4932void
4924x_update_cursor (f, on) 4933x_update_cursor (f, on)
4925 struct frame *f; 4934 struct frame *f;
4926 int on; 4935 int on;
@@ -4943,6 +4952,7 @@ x_update_cursor (f, on)
4943/* Refresh bitmap kitchen sink icon for frame F 4952/* Refresh bitmap kitchen sink icon for frame F
4944 when we get an expose event for it. */ 4953 when we get an expose event for it. */
4945 4954
4955void
4946refreshicon (f) 4956refreshicon (f)
4947 struct frame *f; 4957 struct frame *f;
4948{ 4958{
@@ -5390,6 +5400,7 @@ x_new_fontset (f, fontsetname)
5390/* Calculate the absolute position in frame F 5400/* Calculate the absolute position in frame F
5391 from its current recorded position values and gravity. */ 5401 from its current recorded position values and gravity. */
5392 5402
5403void
5393x_calc_absolute_position (f) 5404x_calc_absolute_position (f)
5394 struct frame *f; 5405 struct frame *f;
5395{ 5406{
@@ -5482,6 +5493,7 @@ x_calc_absolute_position (f)
5482 position values). It is -1 when calling from x_set_frame_parameters, 5493 position values). It is -1 when calling from x_set_frame_parameters,
5483 which means, do adjust for borders but don't change the gravity. */ 5494 which means, do adjust for borders but don't change the gravity. */
5484 5495
5496void
5485x_set_offset (f, xoff, yoff, change_gravity) 5497x_set_offset (f, xoff, yoff, change_gravity)
5486 struct frame *f; 5498 struct frame *f;
5487 register int xoff, yoff; 5499 register int xoff, yoff;
@@ -5533,6 +5545,7 @@ x_set_offset (f, xoff, yoff, change_gravity)
5533 for this size change and subsequent size changes. 5545 for this size change and subsequent size changes.
5534 Otherwise we leave the window gravity unchanged. */ 5546 Otherwise we leave the window gravity unchanged. */
5535 5547
5548void
5536x_set_window_size (f, change_gravity, cols, rows) 5549x_set_window_size (f, change_gravity, cols, rows)
5537 struct frame *f; 5550 struct frame *f;
5538 int change_gravity; 5551 int change_gravity;
@@ -5659,6 +5672,7 @@ x_set_mouse_pixel_position (f, pix_x, pix_y)
5659 5672
5660/* focus shifting, raising and lowering. */ 5673/* focus shifting, raising and lowering. */
5661 5674
5675void
5662x_focus_on_frame (f) 5676x_focus_on_frame (f)
5663 struct frame *f; 5677 struct frame *f;
5664{ 5678{
@@ -5674,6 +5688,7 @@ x_focus_on_frame (f)
5674#endif /* ! 0 */ 5688#endif /* ! 0 */
5675} 5689}
5676 5690
5691void
5677x_unfocus_frame (f) 5692x_unfocus_frame (f)
5678 struct frame *f; 5693 struct frame *f;
5679{ 5694{
@@ -5687,6 +5702,7 @@ x_unfocus_frame (f)
5687 5702
5688/* Raise frame F. */ 5703/* Raise frame F. */
5689 5704
5705void
5690x_raise_frame (f) 5706x_raise_frame (f)
5691 struct frame *f; 5707 struct frame *f;
5692{ 5708{
@@ -5705,6 +5721,7 @@ x_raise_frame (f)
5705 5721
5706/* Lower frame F. */ 5722/* Lower frame F. */
5707 5723
5724void
5708x_lower_frame (f) 5725x_lower_frame (f)
5709 struct frame *f; 5726 struct frame *f;
5710{ 5727{
@@ -5741,6 +5758,7 @@ XTframe_raise_lower (f, raise_flag)
5741 but it will become visible later when the window manager 5758 but it will become visible later when the window manager
5742 finishes with it. */ 5759 finishes with it. */
5743 5760
5761void
5744x_make_frame_visible (f) 5762x_make_frame_visible (f)
5745 struct frame *f; 5763 struct frame *f;
5746{ 5764{
@@ -5869,6 +5887,7 @@ x_make_frame_visible (f)
5869 5887
5870/* Make the frame visible (mapped and not iconified). */ 5888/* Make the frame visible (mapped and not iconified). */
5871 5889
5890void
5872x_make_frame_invisible (f) 5891x_make_frame_invisible (f)
5873 struct frame *f; 5892 struct frame *f;
5874{ 5893{
@@ -5951,6 +5970,7 @@ x_make_frame_invisible (f)
5951 5970
5952/* Change window state from mapped to iconified. */ 5971/* Change window state from mapped to iconified. */
5953 5972
5973void
5954x_iconify_frame (f) 5974x_iconify_frame (f)
5955 struct frame *f; 5975 struct frame *f;
5956{ 5976{
@@ -6059,6 +6079,7 @@ x_iconify_frame (f)
6059 6079
6060/* Destroy the X window of frame F. */ 6080/* Destroy the X window of frame F. */
6061 6081
6082void
6062x_destroy_window (f) 6083x_destroy_window (f)
6063 struct frame *f; 6084 struct frame *f;
6064{ 6085{
@@ -6130,6 +6151,7 @@ x_destroy_window (f)
6130 If USER_POSITION is nonzero, we set the USPosition 6151 If USER_POSITION is nonzero, we set the USPosition
6131 flag (this is useful when FLAGS is 0). */ 6152 flag (this is useful when FLAGS is 0). */
6132 6153
6154void
6133x_wm_set_size_hint (f, flags, user_position) 6155x_wm_set_size_hint (f, flags, user_position)
6134 struct frame *f; 6156 struct frame *f;
6135 long flags; 6157 long flags;
@@ -6273,6 +6295,7 @@ x_wm_set_size_hint (f, flags, user_position)
6273} 6295}
6274 6296
6275/* Used for IconicState or NormalState */ 6297/* Used for IconicState or NormalState */
6298void
6276x_wm_set_window_state (f, state) 6299x_wm_set_window_state (f, state)
6277 struct frame *f; 6300 struct frame *f;
6278 int state; 6301 int state;
@@ -6292,6 +6315,7 @@ x_wm_set_window_state (f, state)
6292#endif /* not USE_X_TOOLKIT */ 6315#endif /* not USE_X_TOOLKIT */
6293} 6316}
6294 6317
6318void
6295x_wm_set_icon_pixmap (f, pixmap_id) 6319x_wm_set_icon_pixmap (f, pixmap_id)
6296 struct frame *f; 6320 struct frame *f;
6297 int pixmap_id; 6321 int pixmap_id;
@@ -6341,6 +6365,7 @@ x_wm_set_icon_pixmap (f, pixmap_id)
6341#endif /* not USE_X_TOOLKIT */ 6365#endif /* not USE_X_TOOLKIT */
6342} 6366}
6343 6367
6368void
6344x_wm_set_icon_position (f, icon_x, icon_y) 6369x_wm_set_icon_position (f, icon_x, icon_y)
6345 struct frame *f; 6370 struct frame *f;
6346 int icon_x, icon_y; 6371 int icon_x, icon_y;
@@ -7161,6 +7186,7 @@ x_delete_display (dpyinfo)
7161 7186
7162/* Set up use of X before we make the first connection. */ 7187/* Set up use of X before we make the first connection. */
7163 7188
7189void
7164x_initialize () 7190x_initialize ()
7165{ 7191{
7166 clear_frame_hook = XTclear_frame; 7192 clear_frame_hook = XTclear_frame;