summaryrefslogtreecommitdiff
path: root/src/msdos.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2012-11-03 15:48:33 +0200
committerEli Zaretskii <eliz@gnu.org>2012-11-03 15:48:33 +0200
commitb3cf17f69548c28d21942cc92a7b65e258857f85 (patch)
tree2b4a5cc13241933632da0b26395c6785eeb797cb /src/msdos.c
parent67b50ba47bcf46bd8a699fa0c1f2af1cce3f2338 (diff)
Adapt the MSDOS build to the latest changes on mainline.
Diffstat (limited to 'src/msdos.c')
-rw-r--r--src/msdos.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/msdos.c b/src/msdos.c
index bac6b977fd..79f0be4889 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -3305,7 +3305,7 @@ XMenuActivate (Display *foo, XMenu *menu, int *pane, int *selidx,
Emacs will process them after we return and surprise the user. */
discard_mouse_events ();
mouse_clear_clicks ();
- if (!kbd_buffer_events_waiting (1))
+ if (!kbd_buffer_events_waiting ())
clear_input_pending ();
/* Allow mouse events generation by dos_rawgetc. */
mouse_preempted--;
@@ -4214,8 +4214,8 @@ init_gettimeofday (void)
}
#endif
-void
-emacs_abort (void)
+static void
+msdos_abort (void)
{
dos_ttcooked ();
ScreenSetCursor (10, 0);
@@ -4233,6 +4233,15 @@ emacs_abort (void)
}
void
+msdos_fatal_signal (int sig)
+{
+ if (sig == SIGABRT)
+ msdos_abort ();
+ else
+ raise (sig);
+}
+
+void
syms_of_msdos (void)
{
recent_doskeys = Fmake_vector (make_number (NUM_RECENT_DOSKEYS), Qnil);