[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/sysdep.c [lexbind]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/src/sysdep.c [lexbind] |
Date: |
Tue, 14 Oct 2003 19:23:24 -0400 |
Index: emacs/src/sysdep.c
diff -c emacs/src/sysdep.c:1.235.2.1 emacs/src/sysdep.c:1.235.2.2
*** emacs/src/sysdep.c:1.235.2.1 Fri Apr 4 01:21:03 2003
--- emacs/src/sysdep.c Tue Oct 14 19:22:46 2003
***************
*** 1,5 ****
/* Interfaces to system-dependent kernel and library entries.
! Copyright (C) 1985, 86,87,88,93,94,95, 1999, 2000, 2001
Free Software Foundation, Inc.
This file is part of GNU Emacs.
--- 1,5 ----
/* Interfaces to system-dependent kernel and library entries.
! Copyright (C) 1985, 86,87,88,93,94,95,1999,2000,01,2003
Free Software Foundation, Inc.
This file is part of GNU Emacs.
***************
*** 85,99 ****
#include <sys/stat.h>
#include <errno.h>
- /* Get _POSIX_VDISABLE, if it is available. */
- #ifdef HAVE_UNISTD_H
- #include <unistd.h>
- #endif
-
- #ifdef HAVE_STDLIB_H
- #include <stdlib.h>
- #endif
-
#ifdef HAVE_SETPGID
#if !defined (USG) || defined (BSD_PGRPS)
#undef setpgrp
--- 85,90 ----
***************
*** 1814,1823 ****
return;
#endif
sf = SELECTED_FRAME ();
! cursor_to (FRAME_HEIGHT (sf) - 1, 0);
! clear_end_of_line (FRAME_WIDTH (sf));
/* clear_end_of_line may move the cursor */
! cursor_to (FRAME_HEIGHT (sf) - 1, 0);
#if defined (IBMR2AIX) && defined (AIXHFT)
{
/* HFT devices normally use ^J as a LF/CR. We forced it to
--- 1805,1814 ----
return;
#endif
sf = SELECTED_FRAME ();
! cursor_to (FRAME_LINES (sf) - 1, 0);
! clear_end_of_line (FRAME_COLS (sf));
/* clear_end_of_line may move the cursor */
! cursor_to (FRAME_LINES (sf) - 1, 0);
#if defined (IBMR2AIX) && defined (AIXHFT)
{
/* HFT devices normally use ^J as a LF/CR. We forced it to
***************
*** 2017,2022 ****
--- 2008,2015 ----
if (c >= 0)
{
struct input_event e;
+ EVENT_INIT (e);
+
e.kind = ASCII_KEYSTROKE_EVENT;
XSETINT (e.code, c);
e.frame_or_window = selected_frame;
***************
*** 2631,2644 ****
void
read_input_waiting ()
{
- struct input_event e;
int nread, i;
extern int quit_char;
if (read_socket_hook)
{
struct input_event buf[256];
!
read_alarm_should_throw = 0;
if (! setjmp (read_alarm_throw))
nread = (*read_socket_hook) (0, buf, 256, 1);
--- 2624,2638 ----
void
read_input_waiting ()
{
int nread, i;
extern int quit_char;
if (read_socket_hook)
{
struct input_event buf[256];
! for (i = 0; i < 256; i++)
! EVENT_INIT (buf[i]);
!
read_alarm_should_throw = 0;
if (! setjmp (read_alarm_throw))
nread = (*read_socket_hook) (0, buf, 256, 1);
***************
*** 2658,2665 ****
--- 2652,2661 ----
}
else
{
+ struct input_event e;
char buf[3];
nread = read (fileno (stdin), buf, 1);
+ EVENT_INIT (e);
/* Scan the chars for C-g and store them in kbd_buffer. */
e.kind = ASCII_KEYSTROKE_EVENT;
***************
*** 2845,2851 ****
#endif /* POSIX_SIGNALS */
! #if !defined HAVE_STRSIGNAL && !defined SYS_SIGLIST_DECLARED
static char *my_sys_siglist[NSIG];
# ifdef sys_siglist
# undef sys_siglist
--- 2841,2847 ----
#endif /* POSIX_SIGNALS */
! #if !defined HAVE_STRSIGNAL && !HAVE_DECL_SYS_SIGLIST
static char *my_sys_siglist[NSIG];
# ifdef sys_siglist
# undef sys_siglist
***************
*** 2861,2867 ****
sigfillset (&full_mask);
#endif
! #if !defined HAVE_STRSIGNAL && !defined SYS_SIGLIST_DECLARED
if (! initialized)
{
# ifdef SIGABRT
--- 2857,2863 ----
sigfillset (&full_mask);
#endif
! #if !defined HAVE_STRSIGNAL && !HAVE_DECL_SYS_SIGLIST
if (! initialized)
{
# ifdef SIGABRT
***************
*** 3021,3027 ****
sys_siglist[SIGXFSZ] = "File size limit exceeded";
# endif
}
! #endif /* !defined HAVE_STRSIGNAL && !defined SYS_SIGLIST_DECLARED */
}
#ifndef HAVE_RANDOM
--- 3017,3023 ----
sys_siglist[SIGXFSZ] = "File size limit exceeded";
# endif
}
! #endif /* !defined HAVE_STRSIGNAL && !defined HAVE_DECL_SYS_SIGLIST */
}
#ifndef HAVE_RANDOM
***************
*** 5302,5304 ****
--- 5298,5302 ----
}
#endif /* HAVE_STRSIGNAL */
+ /* arch-tag: edb43589-4e09-4544-b325-978b5b121dcf
+ (do not change this comment) */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/src/sysdep.c [lexbind],
Miles Bader <=