Mercurial > hg > xemacs-beta
diff src/event-tty.c @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 2f8bb876ab1d |
children | 11054d720c21 |
line wrap: on
line diff
--- a/src/event-tty.c Mon Aug 13 11:19:22 2007 +0200 +++ b/src/event-tty.c Mon Aug 13 11:20:41 2007 +0200 @@ -64,7 +64,7 @@ } static void -tty_timeout_to_emacs_event (Lisp_Event *emacs_event) +tty_timeout_to_emacs_event (struct Lisp_Event *emacs_event) { emacs_event->event_type = timeout_event; /* timeout events have nil as channel */ @@ -112,7 +112,7 @@ } static void -emacs_tty_next_event (Lisp_Event *emacs_event) +emacs_tty_next_event (struct Lisp_Event *emacs_event) { while (1) { @@ -156,7 +156,8 @@ if (FD_ISSET (i, &temp_mask) && FD_ISSET (i, &process_only_mask)) { Lisp_Object process; - Lisp_Process *p = get_process_from_usid (FD_TO_USID(i)); + struct Lisp_Process *p = + get_process_from_usid (FD_TO_USID(i)); assert (p); XSETPROCESS (process, p); @@ -187,20 +188,20 @@ } static void -emacs_tty_handle_magic_event (Lisp_Event *emacs_event) +emacs_tty_handle_magic_event (struct Lisp_Event *emacs_event) { /* Nothing to do currently */ } static void -emacs_tty_select_process (Lisp_Process *process) +emacs_tty_select_process (struct Lisp_Process *process) { event_stream_unixoid_select_process (process); } static void -emacs_tty_unselect_process (Lisp_Process *process) +emacs_tty_unselect_process (struct Lisp_Process *process) { event_stream_unixoid_unselect_process (process); } @@ -244,12 +245,11 @@ /************************************************************************/ void -reinit_vars_of_event_tty (void) +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; @@ -264,12 +264,6 @@ } void -vars_of_event_tty (void) -{ - reinit_vars_of_event_tty (); -} - -void init_event_tty_late (void) { event_stream = tty_event_stream;