aboutsummaryrefslogtreecommitdiffstats
path: root/src/msdos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/msdos.c')
-rw-r--r--src/msdos.c30
1 files changed, 5 insertions, 25 deletions
diff --git a/src/msdos.c b/src/msdos.c
index a214456d104..ed5d3240aa1 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -796,7 +796,7 @@ IT_set_face (int face)
796 /* The default face for the frame should always be realized and 796 /* The default face for the frame should always be realized and
797 cached. */ 797 cached. */
798 if (!fp) 798 if (!fp)
799 abort (); 799 emacs_abort ();
800 } 800 }
801 screen_face = face; 801 screen_face = face;
802 fg = fp->foreground; 802 fg = fp->foreground;
@@ -1029,7 +1029,6 @@ IT_clear_end_of_line (struct frame *f, int first_unused)
1029{ 1029{
1030 char *spaces, *sp; 1030 char *spaces, *sp;
1031 int i, j, offset = 2 * (new_pos_X + screen_size_X * new_pos_Y); 1031 int i, j, offset = 2 * (new_pos_X + screen_size_X * new_pos_Y);
1032 extern int fatal_error_in_progress;
1033 struct tty_display_info *tty = FRAME_TTY (f); 1032 struct tty_display_info *tty = FRAME_TTY (f);
1034 1033
1035 if (new_pos_X >= first_unused || fatal_error_in_progress) 1034 if (new_pos_X >= first_unused || fatal_error_in_progress)
@@ -1394,7 +1393,7 @@ IT_insert_glyphs (struct frame *f, struct glyph *start, int len)
1394static void 1393static void
1395IT_delete_glyphs (struct frame *f, int n) 1394IT_delete_glyphs (struct frame *f, int n)
1396{ 1395{
1397 abort (); 1396 emacs_abort ();
1398} 1397}
1399 1398
1400/* set-window-configuration on window.c needs this. */ 1399/* set-window-configuration on window.c needs this. */
@@ -3014,7 +3013,7 @@ XMenuAddPane (Display *foo, XMenu *menu, const char *txt, int enable)
3014 const char *p; 3013 const char *p;
3015 3014
3016 if (!enable) 3015 if (!enable)
3017 abort (); 3016 emacs_abort ();
3018 3017
3019 IT_menu_make_room (menu); 3018 IT_menu_make_room (menu);
3020 menu->submenu[menu->count] = IT_menu_create (); 3019 menu->submenu[menu->count] = IT_menu_create ();
@@ -4120,7 +4119,7 @@ sys_select (int nfds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds,
4120 FD_ZERO (efds); 4119 FD_ZERO (efds);
4121 4120
4122 if (nfds != 1) 4121 if (nfds != 1)
4123 abort (); 4122 emacs_abort ();
4124 4123
4125 /* If we are looking only for the terminal, with no timeout, 4124 /* If we are looking only for the terminal, with no timeout,
4126 just read it and wait -- that's more efficient. */ 4125 just read it and wait -- that's more efficient. */
@@ -4215,26 +4214,8 @@ init_gettimeofday (void)
4215} 4214}
4216#endif 4215#endif
4217 4216
4218#ifdef abort
4219#undef abort
4220void 4217void
4221dos_abort (char *file, int line) 4218emacs_abort (void)
4222{
4223 char buffer1[200], buffer2[400];
4224 int i, j;
4225
4226 sprintf (buffer1, "<EMACS FATAL ERROR IN %s LINE %d>", file, line);
4227 for (i = j = 0; buffer1[i]; i++) {
4228 buffer2[j++] = buffer1[i];
4229 buffer2[j++] = 0x70;
4230 }
4231 dosmemput (buffer2, j, (int)ScreenPrimary);
4232 ScreenSetCursor (2, 0);
4233 abort ();
4234}
4235#else
4236void
4237abort (void)
4238{ 4219{
4239 dos_ttcooked (); 4220 dos_ttcooked ();
4240 ScreenSetCursor (10, 0); 4221 ScreenSetCursor (10, 0);
@@ -4250,7 +4231,6 @@ abort (void)
4250#endif /* __DJGPP_MINOR__ >= 2 */ 4231#endif /* __DJGPP_MINOR__ >= 2 */
4251 exit (2); 4232 exit (2);
4252} 4233}
4253#endif
4254 4234
4255void 4235void
4256syms_of_msdos (void) 4236syms_of_msdos (void)