diff options
| author | Gerd Moellmann | 2000-07-19 15:47:10 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-07-19 15:47:10 +0000 |
| commit | 952291d9f6328ef637ae64050c78c03ff8ece013 (patch) | |
| tree | 44e20c860990ef4c54eaedb06d8a420a9a14f79d /src | |
| parent | 2e621225898b2e2d898100a69bf2d963953ad416 (diff) | |
| download | emacs-952291d9f6328ef637ae64050c78c03ff8ece013.tar.gz emacs-952291d9f6328ef637ae64050c78c03ff8ece013.zip | |
Add some more prototypes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 17 | ||||
| -rw-r--r-- | src/xterm.h | 34 |
2 files changed, 30 insertions, 21 deletions
diff --git a/src/xterm.c b/src/xterm.c index 48caa78bffc..966459952c5 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -101,8 +101,9 @@ Boston, MA 02111-1307, USA. */ | |||
| 101 | 101 | ||
| 102 | #ifdef USE_X_TOOLKIT | 102 | #ifdef USE_X_TOOLKIT |
| 103 | 103 | ||
| 104 | extern void free_frame_menubar (); | 104 | extern void free_frame_menubar P_ ((struct frame *)); |
| 105 | extern FRAME_PTR x_menubar_window_to_frame (); | 105 | extern struct frame *x_menubar_window_to_frame P_ ((struct x_display_info *, |
| 106 | int)); | ||
| 106 | 107 | ||
| 107 | #if (XtSpecificationRelease >= 5) && !defined(NO_EDITRES) | 108 | #if (XtSpecificationRelease >= 5) && !defined(NO_EDITRES) |
| 108 | #define HACK_EDITRES | 109 | #define HACK_EDITRES |
| @@ -384,8 +385,8 @@ extern int extra_keyboard_modifiers; | |||
| 384 | 385 | ||
| 385 | static Lisp_Object Qvendor_specific_keysyms; | 386 | static Lisp_Object Qvendor_specific_keysyms; |
| 386 | 387 | ||
| 387 | extern XrmDatabase x_load_resources (); | 388 | extern XrmDatabase x_load_resources P_ ((Display *, char *, char *, char *)); |
| 388 | extern Lisp_Object x_icon_type (); | 389 | extern Lisp_Object x_icon_type P_ ((struct frame *)); |
| 389 | 390 | ||
| 390 | 391 | ||
| 391 | /* Enumeration for overriding/changing the face to use for drawing | 392 | /* Enumeration for overriding/changing the face to use for drawing |
| @@ -474,7 +475,13 @@ static int x_phys_cursor_in_rect_p P_ ((struct window *, XRectangle *)); | |||
| 474 | static void x_draw_row_bitmaps P_ ((struct window *, struct glyph_row *)); | 475 | static void x_draw_row_bitmaps P_ ((struct window *, struct glyph_row *)); |
| 475 | static void note_overwritten_text_cursor P_ ((struct window *, int, int)); | 476 | static void note_overwritten_text_cursor P_ ((struct window *, int, int)); |
| 476 | static void x_flush P_ ((struct frame *f)); | 477 | static void x_flush P_ ((struct frame *f)); |
| 477 | 478 | static void x_update_begin P_ ((struct frame *)); | |
| 479 | static void x_update_window_begin P_ ((struct window *)); | ||
| 480 | static void x_draw_vertical_border P_ ((struct window *)); | ||
| 481 | static void x_after_update_window_line P_ ((struct glyph_row *)); | ||
| 482 | static INLINE void take_vertical_position_into_account P_ ((struct it *)); | ||
| 483 | static void x_produce_stretch_glyph P_ ((struct it *)); | ||
| 484 | |||
| 478 | 485 | ||
| 479 | /* Flush display of frame F, or of all frames if F is null. */ | 486 | /* Flush display of frame F, or of all frames if F is null. */ |
| 480 | 487 | ||
diff --git a/src/xterm.h b/src/xterm.h index 81d1a7c6634..6380af5839c 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -106,17 +106,6 @@ Boston, MA 02111-1307, USA. */ | |||
| 106 | | EnterWindowMask \ | 106 | | EnterWindowMask \ |
| 107 | | VisibilityChangeMask) | 107 | | VisibilityChangeMask) |
| 108 | 108 | ||
| 109 | /* This checks to make sure we have a display. */ | ||
| 110 | extern void check_x (); | ||
| 111 | |||
| 112 | extern struct frame *x_window_to_frame (); | ||
| 113 | |||
| 114 | #ifdef USE_X_TOOLKIT | ||
| 115 | extern struct frame *x_any_window_to_frame (); | ||
| 116 | extern struct frame *x_non_menubar_window_to_frame (); | ||
| 117 | extern struct frame *x_top_window_to_frame (); | ||
| 118 | #endif | ||
| 119 | |||
| 120 | enum text_cursor_kinds | 109 | enum text_cursor_kinds |
| 121 | { | 110 | { |
| 122 | NO_CURSOR = -1, | 111 | NO_CURSOR = -1, |
| @@ -352,6 +341,17 @@ struct x_display_info | |||
| 352 | #endif | 341 | #endif |
| 353 | }; | 342 | }; |
| 354 | 343 | ||
| 344 | /* This checks to make sure we have a display. */ | ||
| 345 | extern void check_x P_ ((void)); | ||
| 346 | |||
| 347 | extern struct frame *x_window_to_frame P_ ((struct x_display_info *, int)); | ||
| 348 | |||
| 349 | #ifdef USE_X_TOOLKIT | ||
| 350 | extern struct frame *x_any_window_to_frame P_ ((struct x_display_info *, int)); | ||
| 351 | extern struct frame *x_non_menubar_window_to_frame P_ ((struct x_display_info *, int)); | ||
| 352 | extern struct frame *x_top_window_to_frame P_ ((struct x_display_info *, int)); | ||
| 353 | #endif | ||
| 354 | |||
| 355 | /* This is a chain of structures for all the X displays currently in use. */ | 355 | /* This is a chain of structures for all the X displays currently in use. */ |
| 356 | extern struct x_display_info *x_display_list; | 356 | extern struct x_display_info *x_display_list; |
| 357 | 357 | ||
| @@ -367,15 +367,17 @@ extern Lisp_Object Vx_pixel_size_width_font_regexp; | |||
| 367 | /* A flag to control how to display unibyte 8-bit character. */ | 367 | /* A flag to control how to display unibyte 8-bit character. */ |
| 368 | extern int unibyte_display_via_language_environment; | 368 | extern int unibyte_display_via_language_environment; |
| 369 | 369 | ||
| 370 | struct x_display_info *x_display_info_for_display P_ ((Display *)); | 370 | extern struct x_display_info *x_display_info_for_display P_ ((Display *)); |
| 371 | struct x_display_info *x_display_info_for_name (); | 371 | extern struct x_display_info *x_display_info_for_name P_ ((Lisp_Object)); |
| 372 | 372 | ||
| 373 | extern struct x_display_info *x_term_init (); | 373 | extern struct x_display_info *x_term_init P_ ((Lisp_Object, char *, char *)); |
| 374 | 374 | ||
| 375 | extern Lisp_Object x_list_fonts P_ ((struct frame *, Lisp_Object, int, int)); | 375 | extern Lisp_Object x_list_fonts P_ ((struct frame *, Lisp_Object, int, int)); |
| 376 | extern void select_visual P_ ((struct x_display_info *)); | 376 | extern void select_visual P_ ((struct x_display_info *)); |
| 377 | extern struct font_info *x_get_font_info(), *x_load_font (), *x_query_font (); | 377 | extern struct font_info *x_get_font_info P_ ((struct frame *f, int)); |
| 378 | extern void x_find_ccl_program(); | 378 | extern struct font_info *x_load_font P_ ((struct frame *, char *, int)); |
| 379 | extern struct font_info *x_query_font P_ ((struct frame *, char *)); | ||
| 380 | extern void x_find_ccl_program P_ ((struct font_info *)); | ||
| 379 | 381 | ||
| 380 | /* Each X frame object points to its own struct x_output object | 382 | /* Each X frame object points to its own struct x_output object |
| 381 | in the output_data.x field. The x_output structure contains | 383 | in the output_data.x field. The x_output structure contains |