X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fevent-tty.c;h=59b4e00d2c5fe6ddf279aaeac5f56a0f813614c7;hb=bbf3133177a15f214e3d0060e168ed86dbeed8a2;hp=04376041e7d229c5944ad843f172ac1224373981;hpb=ea1ea793fe6e244ef5555ed983423a204101af13;p=chise%2Fxemacs-chise.git.1 diff --git a/src/event-tty.c b/src/event-tty.c index 0437604..59b4e00 100644 --- a/src/event-tty.c +++ b/src/event-tty.c @@ -64,7 +64,7 @@ emacs_tty_remove_timeout (int id) } static void -tty_timeout_to_emacs_event (struct Lisp_Event *emacs_event) +tty_timeout_to_emacs_event (Lisp_Event *emacs_event) { emacs_event->event_type = timeout_event; /* timeout events have nil as channel */ @@ -112,7 +112,7 @@ tty_find_console_from_fd (int fd) } static void -emacs_tty_next_event (struct Lisp_Event *emacs_event) +emacs_tty_next_event (Lisp_Event *emacs_event) { while (1) { @@ -156,8 +156,7 @@ emacs_tty_next_event (struct Lisp_Event *emacs_event) if (FD_ISSET (i, &temp_mask) && FD_ISSET (i, &process_only_mask)) { Lisp_Object process; - struct Lisp_Process *p = - get_process_from_usid (FD_TO_USID(i)); + Lisp_Process *p = get_process_from_usid (FD_TO_USID(i)); assert (p); XSETPROCESS (process, p); @@ -188,20 +187,20 @@ emacs_tty_next_event (struct Lisp_Event *emacs_event) } static void -emacs_tty_handle_magic_event (struct Lisp_Event *emacs_event) +emacs_tty_handle_magic_event (Lisp_Event *emacs_event) { /* Nothing to do currently */ } static void -emacs_tty_select_process (struct Lisp_Process *process) +emacs_tty_select_process (Lisp_Process *process) { event_stream_unixoid_select_process (process); } static void -emacs_tty_unselect_process (struct Lisp_Process *process) +emacs_tty_unselect_process (Lisp_Process *process) { event_stream_unixoid_unselect_process (process); } @@ -250,6 +249,7 @@ reinit_vars_of_event_tty (void) tty_event_stream = xnew (struct event_stream); tty_event_stream->event_pending_p = emacs_tty_event_pending_p; + tty_event_stream->force_event_pending = 0; tty_event_stream->next_event_cb = emacs_tty_next_event; tty_event_stream->handle_magic_event_cb = emacs_tty_handle_magic_event; tty_event_stream->add_timeout_cb = emacs_tty_add_timeout;