Commit 71f65669 authored by Eli Zaretskii's avatar Eli Zaretskii

(IT_ring_bell, IT_write_glyphs, IT_clear_end_of_line,

IT_clear_screen, IT_clear_to_end, IT_clear_to_end, IT_cursor_to,
IT_cmgoto, IT_reassert_line_highlight, IT_change_line_highlight,
IT_update_begin, IT_update_end, IT_set_terminal_modes,
IT_reset_terminal_modes, IT_set_terminal_window,
pixel_to_glyph_coords, IT_menu_display):  Bring definitions in
accordance with prototype declarations.
parent bd5197a4
...@@ -600,8 +600,8 @@ mouse_off_maybe () ...@@ -600,8 +600,8 @@ mouse_off_maybe ()
mouse_off (); mouse_off ();
} }
static static void
IT_ring_bell () IT_ring_bell (void)
{ {
if (visible_bell) if (visible_bell)
{ {
...@@ -636,7 +636,7 @@ IT_set_face (int face) ...@@ -636,7 +636,7 @@ IT_set_face (int face)
ScreenAttrib = (FACE_BACKGROUND (fp) << 4) | FACE_FOREGROUND (fp); ScreenAttrib = (FACE_BACKGROUND (fp) << 4) | FACE_FOREGROUND (fp);
} }
static static void
IT_write_glyphs (GLYPH *str, int len) IT_write_glyphs (GLYPH *str, int len)
{ {
int newface; int newface;
...@@ -669,8 +669,8 @@ IT_write_glyphs (GLYPH *str, int len) ...@@ -669,8 +669,8 @@ IT_write_glyphs (GLYPH *str, int len)
new_pos_X += len; new_pos_X += len;
} }
static static void
IT_clear_end_of_line (first_unused) IT_clear_end_of_line (int first_unused)
{ {
char *spaces, *sp; char *spaces, *sp;
int i, j; int i, j;
...@@ -694,7 +694,7 @@ IT_clear_end_of_line (first_unused) ...@@ -694,7 +694,7 @@ IT_clear_end_of_line (first_unused)
dosv_refresh_virtual_screen (offset, i / 2); dosv_refresh_virtual_screen (offset, i / 2);
} }
static static void
IT_clear_screen (void) IT_clear_screen (void)
{ {
if (termscript) if (termscript)
...@@ -707,7 +707,7 @@ IT_clear_screen (void) ...@@ -707,7 +707,7 @@ IT_clear_screen (void)
new_pos_X = new_pos_Y = 0; new_pos_X = new_pos_Y = 0;
} }
static static void
IT_clear_to_end (void) IT_clear_to_end (void)
{ {
if (termscript) if (termscript)
...@@ -720,7 +720,7 @@ IT_clear_to_end (void) ...@@ -720,7 +720,7 @@ IT_clear_to_end (void)
} }
} }
static static void
IT_cursor_to (int y, int x) IT_cursor_to (int y, int x)
{ {
if (termscript) if (termscript)
...@@ -765,9 +765,8 @@ IT_display_cursor (int on) ...@@ -765,9 +765,8 @@ IT_display_cursor (int on)
Special treatment is required when the cursor is in the echo area, Special treatment is required when the cursor is in the echo area,
to put the cursor at the end of the text displayed there. */ to put the cursor at the end of the text displayed there. */
static static void
IT_cmgoto (f) IT_cmgoto (FRAME_PTR f)
FRAME_PTR f;
{ {
/* Only set the cursor to where it should be if the display is /* Only set the cursor to where it should be if the display is
already in sync with the window contents. */ already in sync with the window contents. */
...@@ -798,16 +797,15 @@ IT_cmgoto (f) ...@@ -798,16 +797,15 @@ IT_cmgoto (f)
mouse_on (); mouse_on ();
} }
static static void
IT_reassert_line_highlight (new, vpos) IT_reassert_line_highlight (int new, int vpos)
int new, vpos;
{ {
highlight = new; highlight = new;
IT_set_face (0); /* To possibly clear the highlighting. */ IT_set_face (0); /* To possibly clear the highlighting. */
} }
static static void
IT_change_line_highlight (new_highlight, vpos, first_unused_hpos) IT_change_line_highlight (int new_highlight, int vpos, int first_unused_hpos)
{ {
highlight = new_highlight; highlight = new_highlight;
IT_set_face (0); /* To possibly clear the highlighting. */ IT_set_face (0); /* To possibly clear the highlighting. */
...@@ -815,16 +813,16 @@ IT_change_line_highlight (new_highlight, vpos, first_unused_hpos) ...@@ -815,16 +813,16 @@ IT_change_line_highlight (new_highlight, vpos, first_unused_hpos)
IT_clear_end_of_line (first_unused_hpos); IT_clear_end_of_line (first_unused_hpos);
} }
static static void
IT_update_begin () IT_update_begin (struct frame *foo)
{ {
highlight = 0; highlight = 0;
IT_set_face (0); /* To possibly clear the highlighting. */ IT_set_face (0); /* To possibly clear the highlighting. */
screen_face = -1; screen_face = -1;
} }
static static void
IT_update_end () IT_update_end (struct frame *foo)
{ {
} }
...@@ -846,7 +844,7 @@ extern Lisp_Object Qtitle; ...@@ -846,7 +844,7 @@ extern Lisp_Object Qtitle;
/* IT_set_terminal_modes is called when emacs is started, /* IT_set_terminal_modes is called when emacs is started,
resumed, and whenever the screen is redrawn! */ resumed, and whenever the screen is redrawn! */
static static void
IT_set_terminal_modes (void) IT_set_terminal_modes (void)
{ {
if (termscript) if (termscript)
...@@ -909,7 +907,7 @@ IT_set_terminal_modes (void) ...@@ -909,7 +907,7 @@ IT_set_terminal_modes (void)
/* IT_reset_terminal_modes is called when emacs is /* IT_reset_terminal_modes is called when emacs is
suspended or killed. */ suspended or killed. */
static static void
IT_reset_terminal_modes (void) IT_reset_terminal_modes (void)
{ {
int display_row_start = (int) ScreenPrimary; int display_row_start = (int) ScreenPrimary;
...@@ -981,8 +979,8 @@ IT_reset_terminal_modes (void) ...@@ -981,8 +979,8 @@ IT_reset_terminal_modes (void)
term_setup_done = 0; term_setup_done = 0;
} }
static static void
IT_set_terminal_window (void) IT_set_terminal_window (int foo)
{ {
} }
...@@ -1956,7 +1954,7 @@ pixel_to_glyph_coords (f, pix_x, pix_y, x, y, bounds, noclip) ...@@ -1956,7 +1954,7 @@ pixel_to_glyph_coords (f, pix_x, pix_y, x, y, bounds, noclip)
FRAME_PTR f; FRAME_PTR f;
register int pix_x, pix_y; register int pix_x, pix_y;
register int *x, *y; register int *x, *y;
void /* XRectangle */ *bounds; XRectangle *bounds;
int noclip; int noclip;
{ {
if (bounds) abort (); if (bounds) abort ();
...@@ -2077,7 +2075,7 @@ IT_menu_display (XMenu *menu, int y, int x, int *faces) ...@@ -2077,7 +2075,7 @@ IT_menu_display (XMenu *menu, int y, int x, int *faces)
text = (GLYPH *) xmalloc ((width + 2) * sizeof (GLYPH)); text = (GLYPH *) xmalloc ((width + 2) * sizeof (GLYPH));
ScreenGetCursor (&row, &col); ScreenGetCursor (&row, &col);
mouse_get_xy (&mx, &my); mouse_get_xy (&mx, &my);
IT_update_begin (); IT_update_begin (selected_frame);
for (i = 0; i < menu->count; i++) for (i = 0; i < menu->count; i++)
{ {
IT_cursor_to (y + i, x); IT_cursor_to (y + i, x);
...@@ -2104,7 +2102,7 @@ IT_menu_display (XMenu *menu, int y, int x, int *faces) ...@@ -2104,7 +2102,7 @@ IT_menu_display (XMenu *menu, int y, int x, int *faces)
*p++ = FAST_MAKE_GLYPH (menu->submenu[i] ? 16 : ' ', face); *p++ = FAST_MAKE_GLYPH (menu->submenu[i] ? 16 : ' ', face);
IT_write_glyphs (text, width + 2); IT_write_glyphs (text, width + 2);
} }
IT_update_end (); IT_update_end (selected_frame);
IT_cursor_to (row, col); IT_cursor_to (row, col);
xfree (text); xfree (text);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment