Mercurial > hg > xemacs-beta
comparison src/console-stream.c @ 16:0293115a14e9 r19-15b91
Import from CVS: tag r19-15b91
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:49:20 +0200 |
parents | bcdc7deadc19 |
children | e04119814345 |
comparison
equal
deleted
inserted
replaced
15:ad457d5f7d04 | 16:0293115a14e9 |
---|---|
70 } | 70 } |
71 else | 71 else |
72 { | 72 { |
73 CHECK_STRING (tty); | 73 CHECK_STRING (tty); |
74 infd = outfd = errfd = | 74 infd = outfd = errfd = |
75 fopen ((char *) string_data (XSTRING (tty)), "r+"); | 75 fopen ((char *) XSTRING_DATA (tty), "r+"); |
76 if (!infd) | 76 if (!infd) |
77 error ("Unable to open tty %s", string_data (XSTRING (tty))); | 77 error ("Unable to open tty %s", XSTRING_DATA (tty)); |
78 } | 78 } |
79 | 79 |
80 allocate_stream_console_struct (con); | 80 allocate_stream_console_struct (con); |
81 CONSOLE_STREAM_DATA (con)->infd = infd; | 81 CONSOLE_STREAM_DATA (con)->infd = infd; |
82 CONSOLE_STREAM_DATA (con)->outfd = outfd; | 82 CONSOLE_STREAM_DATA (con)->outfd = outfd; |