aboutsummaryrefslogtreecommitdiffstats
path: root/src/msdos.c
diff options
context:
space:
mode:
authorJoakim Verona2012-09-10 16:03:53 +0200
committerJoakim Verona2012-09-10 16:03:53 +0200
commitb035a30e5cd2f34fedc04c253eeb5a11afed8145 (patch)
treeb9350cce389602f4967bdc1beed745929155ad5d /src/msdos.c
parent4a37733c693d59a9b83a3fb2d0c7f9461d149f60 (diff)
parenta31a4cdacb196cc96dcb9bd229edb1d635e01344 (diff)
downloademacs-b035a30e5cd2f34fedc04c253eeb5a11afed8145.tar.gz
emacs-b035a30e5cd2f34fedc04c253eeb5a11afed8145.zip
upstream
Diffstat (limited to 'src/msdos.c')
-rw-r--r--src/msdos.c29
1 files changed, 5 insertions, 24 deletions
diff --git a/src/msdos.c b/src/msdos.c
index ac348e94375..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;
@@ -1393,7 +1393,7 @@ IT_insert_glyphs (struct frame *f, struct glyph *start, int len)
1393static void 1393static void
1394IT_delete_glyphs (struct frame *f, int n) 1394IT_delete_glyphs (struct frame *f, int n)
1395{ 1395{
1396 abort (); 1396 emacs_abort ();
1397} 1397}
1398 1398
1399/* set-window-configuration on window.c needs this. */ 1399/* set-window-configuration on window.c needs this. */
@@ -3013,7 +3013,7 @@ XMenuAddPane (Display *foo, XMenu *menu, const char *txt, int enable)
3013 const char *p; 3013 const char *p;
3014 3014
3015 if (!enable) 3015 if (!enable)
3016 abort (); 3016 emacs_abort ();
3017 3017
3018 IT_menu_make_room (menu); 3018 IT_menu_make_room (menu);
3019 menu->submenu[menu->count] = IT_menu_create (); 3019 menu->submenu[menu->count] = IT_menu_create ();
@@ -4119,7 +4119,7 @@ sys_select (int nfds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds,
4119 FD_ZERO (efds); 4119 FD_ZERO (efds);
4120 4120
4121 if (nfds != 1) 4121 if (nfds != 1)
4122 abort (); 4122 emacs_abort ();
4123 4123
4124 /* If we are looking only for the terminal, with no timeout, 4124 /* If we are looking only for the terminal, with no timeout,
4125 just read it and wait -- that's more efficient. */ 4125 just read it and wait -- that's more efficient. */
@@ -4214,26 +4214,8 @@ init_gettimeofday (void)
4214} 4214}
4215#endif 4215#endif
4216 4216
4217#ifdef abort
4218#undef abort
4219void 4217void
4220dos_abort (char *file, int line) 4218emacs_abort (void)
4221{
4222 char buffer1[200], buffer2[400];
4223 int i, j;
4224
4225 sprintf (buffer1, "<EMACS FATAL ERROR IN %s LINE %d>", file, line);
4226 for (i = j = 0; buffer1[i]; i++) {
4227 buffer2[j++] = buffer1[i];
4228 buffer2[j++] = 0x70;
4229 }
4230 dosmemput (buffer2, j, (int)ScreenPrimary);
4231 ScreenSetCursor (2, 0);
4232 abort ();
4233}
4234#else
4235void
4236abort (void)
4237{ 4219{
4238 dos_ttcooked (); 4220 dos_ttcooked ();
4239 ScreenSetCursor (10, 0); 4221 ScreenSetCursor (10, 0);
@@ -4249,7 +4231,6 @@ abort (void)
4249#endif /* __DJGPP_MINOR__ >= 2 */ 4231#endif /* __DJGPP_MINOR__ >= 2 */
4250 exit (2); 4232 exit (2);
4251} 4233}
4252#endif
4253 4234
4254void 4235void
4255syms_of_msdos (void) 4236syms_of_msdos (void)