projects
/
chise
/
xemacs-chise.git-
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(MIN_LEADING_BYTE): Changed to -0x200.
[chise/xemacs-chise.git-]
/
src
/
event-unixoid.c
diff --git
a/src/event-unixoid.c
b/src/event-unixoid.c
index
d613f62
..
3d7efb7
100644
(file)
--- a/
src/event-unixoid.c
+++ b/
src/event-unixoid.c
@@
-41,10
+41,6
@@
Boston, MA 02111-1307, USA. */
#include "sysproc.h" /* select stuff */
#include "systime.h"
#include "sysproc.h" /* select stuff */
#include "systime.h"
-#ifdef HAVE_GPM
-#include "gpmevent.h"
-#endif
-
/* Mask of bits indicating the descriptors that we wait for input on.
These work as follows:
/* Mask of bits indicating the descriptors that we wait for input on.
These work as follows:
@@
-75,7
+71,7
@@
int signal_event_pipe_initialized;
int fake_event_occurred;
int
int fake_event_occurred;
int
-read_event_from_tty_or_stream_desc (struct Lisp_Event *event,
+read_event_from_tty_or_stream_desc (Lisp_Event *event,
struct console *con, int fd)
{
unsigned char ch;
struct console *con, int fd)
{
unsigned char ch;
@@
-84,12
+80,6
@@
read_event_from_tty_or_stream_desc (struct Lisp_Event *event,
XSETCONSOLE (console, con);
XSETCONSOLE (console, con);
-#ifdef HAVE_GPM
- if (fd == CONSOLE_TTY_MOUSE_FD (con)) {
- return handle_gpm_read (event,con,fd);
- }
-#endif
-
nread = read (fd, &ch, 1);
if (nread <= 0)
{
nread = read (fd, &ch, 1);
if (nread <= 0)
{
@@
-184,7
+174,7
@@
event_stream_unixoid_unselect_console (struct console *con)
}
static int
}
static int
-get_process_infd (struct Lisp_Process *p)
+get_process_infd (Lisp_Process *p)
{
Lisp_Object instr, outstr;
get_process_streams (p, &instr, &outstr);
{
Lisp_Object instr, outstr;
get_process_streams (p, &instr, &outstr);
@@
-193,7
+183,7
@@
get_process_infd (struct Lisp_Process *p)
}
int
}
int
-event_stream_unixoid_select_process (struct Lisp_Process *proc)
+event_stream_unixoid_select_process (Lisp_Process *proc)
{
int infd = get_process_infd (proc);
{
int infd = get_process_infd (proc);
@@
-204,7
+194,7
@@
event_stream_unixoid_select_process (struct Lisp_Process *proc)
}
int
}
int
-event_stream_unixoid_unselect_process (struct Lisp_Process *proc)
+event_stream_unixoid_unselect_process (Lisp_Process *proc)
{
int infd = get_process_infd (proc);
{
int infd = get_process_infd (proc);
@@
-235,7
+225,7
@@
poll_fds_for_input (SELECT_TYPE mask)
{
/* Something went seriously wrong; don't abort since maybe
the TTY just died at the wrong time. */
{
/* Something went seriously wrong; don't abort since maybe
the TTY just died at the wrong time. */
- fprintf (stderr, "xemacs: select failed: errno = %d\n", errno);
+ stderr_out ("xemacs: select failed: errno = %d\n", errno);
return 0;
}
/* else, we got interrupted by a signal, so try again. */
return 0;
}
/* else, we got interrupted by a signal, so try again. */