emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/sysdep.c


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/src/sysdep.c
Date: Sun, 15 Jun 2003 17:04:17 -0400

Index: emacs/src/sysdep.c
diff -c emacs/src/sysdep.c:1.250 emacs/src/sysdep.c:1.251
*** emacs/src/sysdep.c:1.250    Thu Jun 12 18:13:18 2003
--- emacs/src/sysdep.c  Sun Jun 15 17:04:16 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.
***************
*** 2008,2013 ****
--- 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;
***************
*** 2622,2635 ****
  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);
***************
*** 2649,2656 ****
--- 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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]