emacs-diffs
[Top][All Lists]
Advanced

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

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


From: Juanma Barranquero
Subject: [Emacs-diffs] Changes to emacs/src/mac.c
Date: Tue, 04 Feb 2003 09:03:38 -0500

Index: emacs/src/mac.c
diff -c emacs/src/mac.c:1.14 emacs/src/mac.c:1.15
*** emacs/src/mac.c:1.14        Thu Dec 12 12:10:34 2002
--- emacs/src/mac.c     Tue Feb  4 09:03:12 2003
***************
*** 2770,2776 ****
    if (!inhibit_window_system && rfds && FD_ISSET (0, rfds))
      return 1;
    else if (inhibit_window_system || noninteractive ||
!          (timeout && (EMACS_SECS(*timeout)==0) && 
            (EMACS_USECS(*timeout)==0)))
      return select(n, rfds, wfds, efds, timeout);
    else
--- 2770,2776 ----
    if (!inhibit_window_system && rfds && FD_ISSET (0, rfds))
      return 1;
    else if (inhibit_window_system || noninteractive ||
!          (timeout && (EMACS_SECS(*timeout)==0) &&
            (EMACS_USECS(*timeout)==0)))
      return select(n, rfds, wfds, efds, timeout);
    else
***************
*** 2780,2801 ****
        EMACS_GET_TIME (end_time);
        if (timeout)
        EMACS_ADD_TIME (end_time, end_time, *timeout);
!       
        do
        {
          int r;
          EMACS_TIME one_second;
          SELECT_TYPE orfds;
!         
          FD_ZERO (&orfds);
          if (rfds)
            {
              orfds = *rfds;
            }
!         
          EMACS_SET_SECS (one_second, 1);
          EMACS_SET_USECS (one_second, 0);
!         
          if (timeout && EMACS_TIME_LT(*timeout, one_second))
            one_second = *timeout;
  
--- 2780,2801 ----
        EMACS_GET_TIME (end_time);
        if (timeout)
        EMACS_ADD_TIME (end_time, end_time, *timeout);
! 
        do
        {
          int r;
          EMACS_TIME one_second;
          SELECT_TYPE orfds;
! 
          FD_ZERO (&orfds);
          if (rfds)
            {
              orfds = *rfds;
            }
! 
          EMACS_SET_SECS (one_second, 1);
          EMACS_SET_USECS (one_second, 0);
! 
          if (timeout && EMACS_TIME_LT(*timeout, one_second))
            one_second = *timeout;
  
***************
*** 2806,2817 ****
            }
  
          mac_check_for_quit_char();
!         
          EMACS_GET_TIME (now);
          EMACS_SUB_TIME (now, end_time, now);
        }
        while (!timeout || !EMACS_TIME_NEG_P (now));
!       
        return 0;
      }
  }
--- 2806,2817 ----
            }
  
          mac_check_for_quit_char();
! 
          EMACS_GET_TIME (now);
          EMACS_SUB_TIME (now, end_time, now);
        }
        while (!timeout || !EMACS_TIME_NEG_P (now));
! 
        return 0;
      }
  }
***************
*** 2835,2841 ****
        if (sys_select (fds+1, &rfds, 0, 0, NULL) < 0)
        return -1;
      }
!       
    return read (fds, buf, nbyte);
  }
  
--- 2835,2841 ----
        if (sys_select (fds+1, &rfds, 0, 0, NULL) < 0)
        return -1;
      }
! 
    return read (fds, buf, nbyte);
  }
  




reply via email to

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