X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fevent-stream.c;h=e294ae60426e1c499d53b100f688203b33d199da;hb=e22b5c8bdcbf854845110210456025888e130fea;hp=1829140c9fca42b6638429faaaab4c45a72fe103;hpb=f3ec20f455f3f1212d2c5ee4cadc984330da9c38;p=chise%2Fxemacs-chise.git diff --git a/src/event-stream.c b/src/event-stream.c index 1829140..e294ae6 100644 --- a/src/event-stream.c +++ b/src/event-stream.c @@ -432,7 +432,7 @@ allocate_command_builder (Lisp_Object console) { Lisp_Object builder_obj; struct command_builder *builder = - alloc_lcrecord_type (struct command_builder, lrecord_command_builder); + alloc_lcrecord_type (struct command_builder, &lrecord_command_builder); builder->console = console; reset_command_builder_event_chain (builder); @@ -5374,8 +5374,7 @@ init_event_stream (void) if (initialized) { #ifdef HAVE_UNIXOID_EVENT_LOOP - /* if (strcmp (display_use, "mswindows") != 0)*/ - init_event_unixoid (); + init_event_unixoid (); #endif #ifdef HAVE_X_WINDOWS if (!strcmp (display_use, "x")) @@ -5390,12 +5389,14 @@ init_event_stream (void) { /* For TTY's, use the Xt event loop if we can; it allows us to later open an X connection. */ -#if defined (HAVE_X_WINDOWS) && !defined (DEBUG_TTY_EVENT_STREAM) +#if defined (HAVE_MS_WINDOWS) && (!defined (HAVE_TTY) \ + || (defined (HAVE_MSG_SELECT) \ + && !defined (DEBUG_TTY_EVENT_STREAM))) + init_event_mswindows_late (); +#elif defined (HAVE_X_WINDOWS) && !defined (DEBUG_TTY_EVENT_STREAM) init_event_Xt_late (); #elif defined (HAVE_TTY) init_event_tty_late (); -#elif defined (HAVE_MS_WINDOWS) - init_event_mswindows_late (); #endif } init_interrupts_late ();