diff src/console-tty.c @ 12:bcdc7deadc19 r19-15b7

Import from CVS: tag r19-15b7
author cvs
date Mon, 13 Aug 2007 08:48:16 +0200
parents 376386a54a3c
children 9ee227acff29
line wrap: on
line diff
--- a/src/console-tty.c	Mon Aug 13 08:47:56 2007 +0200
+++ b/src/console-tty.c	Mon Aug 13 08:48:16 2007 +0200
@@ -43,7 +43,7 @@
 
 Lisp_Object Qterminal_type;
 
-Lisp_Object Vstdio_str;
+extern Lisp_Object Vstdio_str; /* in console-stream.c */
 
 
 static void
@@ -204,42 +204,28 @@
 tty_semi_canonicalize_console_connection (Lisp_Object connection,
 					  Error_behavior errb)
 {
-  if (NILP (connection))
-    return Vstdio_str;
-
-  return connection;
+  return stream_semi_canonicalize_console_connection (connection, errb);
 }
 
 Lisp_Object
 tty_canonicalize_console_connection (Lisp_Object connection,
 				     Error_behavior errb)
 {
-  if (NILP (connection) || !NILP (Fequal (connection, Vstdio_str)))
-    return Vstdio_str;
-
-  if (!ERRB_EQ (errb, ERROR_ME))
-    {
-      if (!STRINGP (connection))
-	return Qunbound;
-    }
-  else
-    CHECK_STRING (connection);
-
-  return Ffile_truename (connection, Qnil);
+  return stream_canonicalize_console_connection (connection, errb);
 }
 
 Lisp_Object
 tty_semi_canonicalize_device_connection (Lisp_Object connection,
 					 Error_behavior errb)
 {
-  return tty_semi_canonicalize_console_connection (connection, errb);
+  return stream_semi_canonicalize_console_connection (connection, errb);
 }
 
 Lisp_Object
 tty_canonicalize_device_connection (Lisp_Object connection,
 				    Error_behavior errb)
 {
-  return tty_canonicalize_console_connection (connection, errb);
+  return stream_canonicalize_console_connection (connection, errb);
 }
 
 
@@ -274,7 +260,4 @@
 vars_of_console_tty (void)
 {
   Fprovide (Qtty);
-
-  Vstdio_str = build_string ("stdio");
-  staticpro (&Vstdio_str);
 }