diff src/event-stream.c @ 263:727739f917cb r20-5b30

Import from CVS: tag r20-5b30
author cvs
date Mon, 13 Aug 2007 10:24:41 +0200
parents 11cf20601dec
children 8efd647ea9ca
line wrap: on
line diff
--- a/src/event-stream.c	Mon Aug 13 10:23:52 2007 +0200
+++ b/src/event-stream.c	Mon Aug 13 10:24:41 2007 +0200
@@ -528,7 +528,7 @@
       int ch = CONSOLE_QUIT_CHAR (con);
       sigint_happened = 0;
       Vquit_flag = Qnil;
-      character_to_event (ch, event, con, 1);
+      character_to_event (ch, event, con, 1, 1);
       event->channel = make_console (con);
       return 1;
     }
@@ -644,6 +644,22 @@
     }
 }
 
+USID
+event_stream_create_stream_pair (void* inhandle, void* outhandle,
+		Lisp_Object* instream, Lisp_Object* outstream, int flags)
+{
+  check_event_stream_ok (EVENT_STREAM_PROCESS);
+  return event_stream->create_stream_pair_cb
+		(inhandle, outhandle, instream, outstream, flags);
+}
+
+USID
+event_stream_delete_stream_pair (Lisp_Object instream, Lisp_Object outstream)
+{
+  check_event_stream_ok (EVENT_STREAM_PROCESS);
+  return event_stream->delete_stream_pair_cb (instream, outstream);
+}
+
 void
 event_stream_quit_p (void)
 {
@@ -789,7 +805,7 @@
 	     This way is safer. */
 	  zero_event (&ev2);
 	  character_to_event (XCHAR (traduit), &ev2,
-			      XCONSOLE (EVENT_CHANNEL (XEVENT (event))), 1);
+			      XCONSOLE (EVENT_CHANNEL (XEVENT (event))), 1, 1);
 	  XEVENT (event)->event.key.keysym = ev2.event.key.keysym;
 	  XEVENT (event)->event.key.modifiers = ev2.event.key.modifiers;
 	  did_translate = 1;
@@ -4170,7 +4186,7 @@
 	  struct console *con = XCONSOLE (Fselected_console ());
 	  int ch = CONSOLE_QUIT_CHAR (con);
 
-	  character_to_event (ch, e, con, 1);
+	  character_to_event (ch, e, con, 1, 1);
 	  e->channel = make_console (con);
 
 	  enqueue_command_event (quit_event);
@@ -4816,7 +4832,7 @@
       if (fd < 0)
 	error ("Unable to create dribble file");
       Vdribble_file = make_filedesc_output_stream (fd, 0, 0, LSTR_CLOSING);
-#ifdef FILE_CODING
+#ifdef MULE
       Vdribble_file =
 	make_encoding_output_stream (XLSTREAM (Vdribble_file),
 				     Fget_coding_system (Qescape_quoted));
@@ -5310,14 +5326,15 @@
   if (initialized)
     {
 #ifdef HAVE_UNIXOID_EVENT_LOOP
-      init_event_unixoid ();
+      if (strcmp (display_use, "mswindows") != 0)
+	init_event_unixoid ();
 #endif
-
 #ifdef HAVE_X_WINDOWS
       if (!strcmp (display_use, "x"))
 	init_event_Xt_late ();
       else
-#elif defined(HAVE_MS_WINDOWS)
+#endif
+#ifdef HAVE_MS_WINDOWS
       if (!strcmp (display_use, "mswindows"))
 	init_event_mswindows_late ();
       else
@@ -5329,8 +5346,6 @@
 	    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 ();