Skip to content

Commit

Permalink
(IT_ring_bell, IT_write_glyphs, IT_clear_end_of_line,
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Eli-Zaretskii committed Apr 27, 1998
1 parent ae0d91f commit 36c04d7
Showing 1 changed file with 25 additions and 27 deletions.
52 changes: 25 additions & 27 deletions src/msdos.c
Expand Up @@ -600,8 +600,8 @@ mouse_off_maybe ()
mouse_off ();
}

static
IT_ring_bell ()
static void
IT_ring_bell (void)
{
if (visible_bell)
{
Expand Down Expand Up @@ -636,7 +636,7 @@ IT_set_face (int face)
ScreenAttrib = (FACE_BACKGROUND (fp) << 4) | FACE_FOREGROUND (fp);
}

static
static void
IT_write_glyphs (GLYPH *str, int len)
{
int newface;
Expand Down Expand Up @@ -669,8 +669,8 @@ IT_write_glyphs (GLYPH *str, int len)
new_pos_X += len;
}

static
IT_clear_end_of_line (first_unused)
static void
IT_clear_end_of_line (int first_unused)
{
char *spaces, *sp;
int i, j;
Expand All @@ -694,7 +694,7 @@ IT_clear_end_of_line (first_unused)
dosv_refresh_virtual_screen (offset, i / 2);
}

static
static void
IT_clear_screen (void)
{
if (termscript)
Expand All @@ -707,7 +707,7 @@ IT_clear_screen (void)
new_pos_X = new_pos_Y = 0;
}

static
static void
IT_clear_to_end (void)
{
if (termscript)
Expand All @@ -720,7 +720,7 @@ IT_clear_to_end (void)
}
}

static
static void
IT_cursor_to (int y, int x)
{
if (termscript)
Expand Down Expand Up @@ -765,9 +765,8 @@ IT_display_cursor (int on)
Special treatment is required when the cursor is in the echo area,
to put the cursor at the end of the text displayed there. */

static
IT_cmgoto (f)
FRAME_PTR f;
static void
IT_cmgoto (FRAME_PTR f)
{
/* Only set the cursor to where it should be if the display is
already in sync with the window contents. */
Expand Down Expand Up @@ -798,33 +797,32 @@ IT_cmgoto (f)
mouse_on ();
}

static
IT_reassert_line_highlight (new, vpos)
int new, vpos;
static void
IT_reassert_line_highlight (int new, int vpos)
{
highlight = new;
IT_set_face (0); /* To possibly clear the highlighting. */
}

static
IT_change_line_highlight (new_highlight, vpos, first_unused_hpos)
static void
IT_change_line_highlight (int new_highlight, int vpos, int first_unused_hpos)
{
highlight = new_highlight;
IT_set_face (0); /* To possibly clear the highlighting. */
IT_cursor_to (vpos, 0);
IT_clear_end_of_line (first_unused_hpos);
}

static
IT_update_begin ()
static void
IT_update_begin (struct frame *foo)
{
highlight = 0;
IT_set_face (0); /* To possibly clear the highlighting. */
screen_face = -1;
}

static
IT_update_end ()
static void
IT_update_end (struct frame *foo)
{
}

Expand All @@ -846,7 +844,7 @@ extern Lisp_Object Qtitle;
/* IT_set_terminal_modes is called when emacs is started,
resumed, and whenever the screen is redrawn! */

static
static void
IT_set_terminal_modes (void)
{
if (termscript)
Expand Down Expand Up @@ -909,7 +907,7 @@ IT_set_terminal_modes (void)
/* IT_reset_terminal_modes is called when emacs is
suspended or killed. */

static
static void
IT_reset_terminal_modes (void)
{
int display_row_start = (int) ScreenPrimary;
Expand Down Expand Up @@ -981,8 +979,8 @@ IT_reset_terminal_modes (void)
term_setup_done = 0;
}

static
IT_set_terminal_window (void)
static void
IT_set_terminal_window (int foo)
{
}

Expand Down Expand Up @@ -1956,7 +1954,7 @@ pixel_to_glyph_coords (f, pix_x, pix_y, x, y, bounds, noclip)
FRAME_PTR f;
register int pix_x, pix_y;
register int *x, *y;
void /* XRectangle */ *bounds;
XRectangle *bounds;
int noclip;
{
if (bounds) abort ();
Expand Down Expand Up @@ -2077,7 +2075,7 @@ IT_menu_display (XMenu *menu, int y, int x, int *faces)
text = (GLYPH *) xmalloc ((width + 2) * sizeof (GLYPH));
ScreenGetCursor (&row, &col);
mouse_get_xy (&mx, &my);
IT_update_begin ();
IT_update_begin (selected_frame);
for (i = 0; i < menu->count; i++)
{
IT_cursor_to (y + i, x);
Expand All @@ -2104,7 +2102,7 @@ IT_menu_display (XMenu *menu, int y, int x, int *faces)
*p++ = FAST_MAKE_GLYPH (menu->submenu[i] ? 16 : ' ', face);
IT_write_glyphs (text, width + 2);
}
IT_update_end ();
IT_update_end (selected_frame);
IT_cursor_to (row, col);
xfree (text);
}
Expand Down

0 comments on commit 36c04d7

Please sign in to comment.