aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii1998-04-27 14:18:00 +0000
committerEli Zaretskii1998-04-27 14:18:00 +0000
commit71f65669335493335616e18ba83b311e74da0d05 (patch)
tree8e9e1a4a68440956c96e7f0d4754600cb877b645 /src
parentbd5197a45bf407d010ae7699ce90eb7b090e136c (diff)
downloademacs-71f65669335493335616e18ba83b311e74da0d05.tar.gz
emacs-71f65669335493335616e18ba83b311e74da0d05.zip
(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.
Diffstat (limited to 'src')
-rw-r--r--src/msdos.c52
1 files changed, 25 insertions, 27 deletions
diff --git a/src/msdos.c b/src/msdos.c
index 09bcba54639..7f7f58d75cb 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -600,8 +600,8 @@ mouse_off_maybe ()
600 mouse_off (); 600 mouse_off ();
601} 601}
602 602
603static 603static void
604IT_ring_bell () 604IT_ring_bell (void)
605{ 605{
606 if (visible_bell) 606 if (visible_bell)
607 { 607 {
@@ -636,7 +636,7 @@ IT_set_face (int face)
636 ScreenAttrib = (FACE_BACKGROUND (fp) << 4) | FACE_FOREGROUND (fp); 636 ScreenAttrib = (FACE_BACKGROUND (fp) << 4) | FACE_FOREGROUND (fp);
637} 637}
638 638
639static 639static void
640IT_write_glyphs (GLYPH *str, int len) 640IT_write_glyphs (GLYPH *str, int len)
641{ 641{
642 int newface; 642 int newface;
@@ -669,8 +669,8 @@ IT_write_glyphs (GLYPH *str, int len)
669 new_pos_X += len; 669 new_pos_X += len;
670} 670}
671 671
672static 672static void
673IT_clear_end_of_line (first_unused) 673IT_clear_end_of_line (int first_unused)
674{ 674{
675 char *spaces, *sp; 675 char *spaces, *sp;
676 int i, j; 676 int i, j;
@@ -694,7 +694,7 @@ IT_clear_end_of_line (first_unused)
694 dosv_refresh_virtual_screen (offset, i / 2); 694 dosv_refresh_virtual_screen (offset, i / 2);
695} 695}
696 696
697static 697static void
698IT_clear_screen (void) 698IT_clear_screen (void)
699{ 699{
700 if (termscript) 700 if (termscript)
@@ -707,7 +707,7 @@ IT_clear_screen (void)
707 new_pos_X = new_pos_Y = 0; 707 new_pos_X = new_pos_Y = 0;
708} 708}
709 709
710static 710static void
711IT_clear_to_end (void) 711IT_clear_to_end (void)
712{ 712{
713 if (termscript) 713 if (termscript)
@@ -720,7 +720,7 @@ IT_clear_to_end (void)
720 } 720 }
721} 721}
722 722
723static 723static void
724IT_cursor_to (int y, int x) 724IT_cursor_to (int y, int x)
725{ 725{
726 if (termscript) 726 if (termscript)
@@ -765,9 +765,8 @@ IT_display_cursor (int on)
765 Special treatment is required when the cursor is in the echo area, 765 Special treatment is required when the cursor is in the echo area,
766 to put the cursor at the end of the text displayed there. */ 766 to put the cursor at the end of the text displayed there. */
767 767
768static 768static void
769IT_cmgoto (f) 769IT_cmgoto (FRAME_PTR f)
770 FRAME_PTR f;
771{ 770{
772 /* Only set the cursor to where it should be if the display is 771 /* Only set the cursor to where it should be if the display is
773 already in sync with the window contents. */ 772 already in sync with the window contents. */
@@ -798,16 +797,15 @@ IT_cmgoto (f)
798 mouse_on (); 797 mouse_on ();
799} 798}
800 799
801static 800static void
802IT_reassert_line_highlight (new, vpos) 801IT_reassert_line_highlight (int new, int vpos)
803 int new, vpos;
804{ 802{
805 highlight = new; 803 highlight = new;
806 IT_set_face (0); /* To possibly clear the highlighting. */ 804 IT_set_face (0); /* To possibly clear the highlighting. */
807} 805}
808 806
809static 807static void
810IT_change_line_highlight (new_highlight, vpos, first_unused_hpos) 808IT_change_line_highlight (int new_highlight, int vpos, int first_unused_hpos)
811{ 809{
812 highlight = new_highlight; 810 highlight = new_highlight;
813 IT_set_face (0); /* To possibly clear the highlighting. */ 811 IT_set_face (0); /* To possibly clear the highlighting. */
@@ -815,16 +813,16 @@ IT_change_line_highlight (new_highlight, vpos, first_unused_hpos)
815 IT_clear_end_of_line (first_unused_hpos); 813 IT_clear_end_of_line (first_unused_hpos);
816} 814}
817 815
818static 816static void
819IT_update_begin () 817IT_update_begin (struct frame *foo)
820{ 818{
821 highlight = 0; 819 highlight = 0;
822 IT_set_face (0); /* To possibly clear the highlighting. */ 820 IT_set_face (0); /* To possibly clear the highlighting. */
823 screen_face = -1; 821 screen_face = -1;
824} 822}
825 823
826static 824static void
827IT_update_end () 825IT_update_end (struct frame *foo)
828{ 826{
829} 827}
830 828
@@ -846,7 +844,7 @@ extern Lisp_Object Qtitle;
846/* IT_set_terminal_modes is called when emacs is started, 844/* IT_set_terminal_modes is called when emacs is started,
847 resumed, and whenever the screen is redrawn! */ 845 resumed, and whenever the screen is redrawn! */
848 846
849static 847static void
850IT_set_terminal_modes (void) 848IT_set_terminal_modes (void)
851{ 849{
852 if (termscript) 850 if (termscript)
@@ -909,7 +907,7 @@ IT_set_terminal_modes (void)
909/* IT_reset_terminal_modes is called when emacs is 907/* IT_reset_terminal_modes is called when emacs is
910 suspended or killed. */ 908 suspended or killed. */
911 909
912static 910static void
913IT_reset_terminal_modes (void) 911IT_reset_terminal_modes (void)
914{ 912{
915 int display_row_start = (int) ScreenPrimary; 913 int display_row_start = (int) ScreenPrimary;
@@ -981,8 +979,8 @@ IT_reset_terminal_modes (void)
981 term_setup_done = 0; 979 term_setup_done = 0;
982} 980}
983 981
984static 982static void
985IT_set_terminal_window (void) 983IT_set_terminal_window (int foo)
986{ 984{
987} 985}
988 986
@@ -1956,7 +1954,7 @@ pixel_to_glyph_coords (f, pix_x, pix_y, x, y, bounds, noclip)
1956 FRAME_PTR f; 1954 FRAME_PTR f;
1957 register int pix_x, pix_y; 1955 register int pix_x, pix_y;
1958 register int *x, *y; 1956 register int *x, *y;
1959 void /* XRectangle */ *bounds; 1957 XRectangle *bounds;
1960 int noclip; 1958 int noclip;
1961{ 1959{
1962 if (bounds) abort (); 1960 if (bounds) abort ();
@@ -2077,7 +2075,7 @@ IT_menu_display (XMenu *menu, int y, int x, int *faces)
2077 text = (GLYPH *) xmalloc ((width + 2) * sizeof (GLYPH)); 2075 text = (GLYPH *) xmalloc ((width + 2) * sizeof (GLYPH));
2078 ScreenGetCursor (&row, &col); 2076 ScreenGetCursor (&row, &col);
2079 mouse_get_xy (&mx, &my); 2077 mouse_get_xy (&mx, &my);
2080 IT_update_begin (); 2078 IT_update_begin (selected_frame);
2081 for (i = 0; i < menu->count; i++) 2079 for (i = 0; i < menu->count; i++)
2082 { 2080 {
2083 IT_cursor_to (y + i, x); 2081 IT_cursor_to (y + i, x);
@@ -2104,7 +2102,7 @@ IT_menu_display (XMenu *menu, int y, int x, int *faces)
2104 *p++ = FAST_MAKE_GLYPH (menu->submenu[i] ? 16 : ' ', face); 2102 *p++ = FAST_MAKE_GLYPH (menu->submenu[i] ? 16 : ' ', face);
2105 IT_write_glyphs (text, width + 2); 2103 IT_write_glyphs (text, width + 2);
2106 } 2104 }
2107 IT_update_end (); 2105 IT_update_end (selected_frame);
2108 IT_cursor_to (row, col); 2106 IT_cursor_to (row, col);
2109 xfree (text); 2107 xfree (text);
2110} 2108}