Mercurial > hg > xemacs-beta
comparison src/event-unixoid.c @ 396:6719134a07c2 r21-2-13
Import from CVS: tag r21-2-13
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:12:05 +0200 |
parents | c42ec1d1cded |
children | 74fd4e045ea6 |
comparison
equal
deleted
inserted
replaced
395:de2c2a7459d2 | 396:6719134a07c2 |
---|---|
145 event_stream_unixoid_select_console (struct console *con) | 145 event_stream_unixoid_select_console (struct console *con) |
146 { | 146 { |
147 int infd; | 147 int infd; |
148 | 148 |
149 if (CONSOLE_STREAM_P (con)) | 149 if (CONSOLE_STREAM_P (con)) |
150 infd = fileno (CONSOLE_STREAM_DATA (con)->infd); | 150 infd = fileno (CONSOLE_STREAM_DATA (con)->in); |
151 else | 151 else |
152 { | 152 { |
153 assert (CONSOLE_TTY_P (con)); | 153 assert (CONSOLE_TTY_P (con)); |
154 infd = CONSOLE_TTY_DATA (con)->infd; | 154 infd = CONSOLE_TTY_DATA (con)->infd; |
155 } | 155 } |
166 event_stream_unixoid_unselect_console (struct console *con) | 166 event_stream_unixoid_unselect_console (struct console *con) |
167 { | 167 { |
168 int infd; | 168 int infd; |
169 | 169 |
170 if (CONSOLE_STREAM_P (con)) | 170 if (CONSOLE_STREAM_P (con)) |
171 infd = fileno (CONSOLE_STREAM_DATA (con)->infd); | 171 infd = fileno (CONSOLE_STREAM_DATA (con)->in); |
172 else | 172 else |
173 { | 173 { |
174 assert (CONSOLE_TTY_P (con)); | 174 assert (CONSOLE_TTY_P (con)); |
175 infd = CONSOLE_TTY_DATA (con)->infd; | 175 infd = CONSOLE_TTY_DATA (con)->infd; |
176 } | 176 } |