aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1992-03-18 19:09:07 +0000
committerJim Blandy1992-03-18 19:09:07 +0000
commitd1af74e9180ce8dbef5aa2ddb947dab1a89d6f36 (patch)
tree61c73a0af562ce846682ccf5e527d00552ded51f /src
parent519a3b65d998dd184d920db96c5f321c100c40a7 (diff)
downloademacs-d1af74e9180ce8dbef5aa2ddb947dab1a89d6f36.tar.gz
emacs-d1af74e9180ce8dbef5aa2ddb947dab1a89d6f36.zip
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c29
-rw-r--r--src/emacs.c10
2 files changed, 15 insertions, 24 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index f55189d87eb..ed4321dfe72 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -1,5 +1,5 @@
1/* Updating of data structures for redisplay. 1/* Updating of data structures for redisplay.
2 Copyright (C) 1985, 1986, 1987, 1988, 1990 Free Software Foundation, Inc. 2 Copyright (C) 1985, 1986, 1987, 1988, 1990, 1992 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -1780,9 +1780,6 @@ Optional second arg non-nil means ARG is measured in milliseconds.\n\
1780 (n, millisec) 1780 (n, millisec)
1781 Lisp_Object n, millisec; 1781 Lisp_Object n, millisec;
1782{ 1782{
1783#ifndef subprocesses
1784 EMACS_TIME timeout, end_time;
1785#endif /* no subprocesses */
1786 int usec = 0; 1783 int usec = 0;
1787 int sec; 1784 int sec;
1788 1785
@@ -1801,9 +1798,9 @@ Optional second arg non-nil means ARG is measured in milliseconds.\n\
1801#endif 1798#endif
1802 } 1799 }
1803 1800
1804#ifdef subprocesses
1805 wait_reading_process_input (sec, usec, 0, 0); 1801 wait_reading_process_input (sec, usec, 0, 0);
1806#else /* No subprocesses */ 1802
1803#if 0 /* No wait_reading_process_input */
1807 immediate_quit = 1; 1804 immediate_quit = 1;
1808 QUIT; 1805 QUIT;
1809 1806
@@ -1816,7 +1813,7 @@ Optional second arg non-nil means ARG is measured in milliseconds.\n\
1816#ifdef HAVE_SELECT 1813#ifdef HAVE_SELECT
1817 EMACS_GET_TIME (end_time); 1814 EMACS_GET_TIME (end_time);
1818 EMACS_SET_SECS_USECS (timeout, sec, usec); 1815 EMACS_SET_SECS_USECS (timeout, sec, usec);
1819 EMACS_ADD_TIME (end_time, timeout); 1816 EMACS_ADD_TIME (end_time, end_time, timeout);
1820 1817
1821 while (1) 1818 while (1)
1822 { 1819 {
@@ -1847,10 +1844,6 @@ Value is t if waited the full time with no input arriving.")
1847 (n, millisec, nodisp) 1844 (n, millisec, nodisp)
1848 Lisp_Object n, millisec, nodisp; 1845 Lisp_Object n, millisec, nodisp;
1849{ 1846{
1850#ifndef subprocesses
1851 EMACS_TIME timeout;
1852 int waitchannels;
1853#endif /* no subprocesses */
1854 int usec = 0; 1847 int usec = 0;
1855 int sec; 1848 int sec;
1856 1849
@@ -1876,12 +1869,12 @@ Value is t if waited the full time with no input arriving.")
1876#endif 1869#endif
1877 } 1870 }
1878 1871
1879#ifdef subprocesses
1880#ifdef SIGIO 1872#ifdef SIGIO
1881 gobble_input (); 1873 gobble_input ();
1882#endif /* SIGIO */ 1874#endif /* SIGIO */
1883 wait_reading_process_input (sec, usec, 1, 1); 1875 wait_reading_process_input (sec, usec, 1, 1);
1884#else /* no subprocesses */ 1876
1877#if 0 /* No wait_reading_process_input available. */
1885 immediate_quit = 1; 1878 immediate_quit = 1;
1886 QUIT; 1879 QUIT;
1887 1880
@@ -1889,12 +1882,18 @@ Value is t if waited the full time with no input arriving.")
1889#ifdef VMS 1882#ifdef VMS
1890 input_wait_timeout (XINT (n)); 1883 input_wait_timeout (XINT (n));
1891#else /* not VMS */ 1884#else /* not VMS */
1892 EMACS_SET_SECS_USECS (timeout, sec, usec); 1885#ifndef HAVE_TIMEVAL
1886 timeout_sec = sec;
1887 select (1, &waitchannels, 0, 0, &timeout_sec);
1888#else /* HAVE_TIMEVAL */
1889 timeout.tv_sec = sec;
1890 timeout.tv_usec = usec;
1893 select (1, &waitchannels, 0, 0, &timeout); 1891 select (1, &waitchannels, 0, 0, &timeout);
1892#endif /* HAVE_TIMEVAL */
1894#endif /* not VMS */ 1893#endif /* not VMS */
1895 1894
1896 immediate_quit = 0; 1895 immediate_quit = 0;
1897#endif /* no subprocesses */ 1896#endif
1898 1897
1899 return detect_input_pending () ? Qnil : Qt; 1898 return detect_input_pending () ? Qnil : Qt;
1900} 1899}
diff --git a/src/emacs.c b/src/emacs.c
index b3f17306e4f..c530eca103f 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1,5 +1,5 @@
1/* Fully extensible Emacs, running on Unix, intended for GNU. 1/* Fully extensible Emacs, running on Unix, intended for GNU.
2 Copyright (C) 1985, 1986, 1987 Free Software Foundation, Inc. 2 Copyright (C) 1985, 1986, 1987, 1992 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -140,9 +140,7 @@ fatal_error_signal (sig)
140#endif /* uses pgrp */ 140#endif /* uses pgrp */
141 141
142 /* Clean up */ 142 /* Clean up */
143#ifdef subprocesses
144 kill_buffer_processes (Qnil); 143 kill_buffer_processes (Qnil);
145#endif
146 Fdo_auto_save (Qt, Qnil); 144 Fdo_auto_save (Qt, Qnil);
147 145
148#ifdef CLASH_DETECTION 146#ifdef CLASH_DETECTION
@@ -443,9 +441,7 @@ main (argc, argv, envp)
443#ifdef VMS 441#ifdef VMS
444 init_vmsfns (); 442 init_vmsfns ();
445#endif /* VMS */ 443#endif /* VMS */
446#ifdef subprocesses
447 init_process (); 444 init_process ();
448#endif /* subprocesses */
449 445
450/* Intern the names of all standard functions and variables; define standard keys */ 446/* Intern the names of all standard functions and variables; define standard keys */
451 447
@@ -490,9 +486,7 @@ main (argc, argv, envp)
490 syms_of_marker (); 486 syms_of_marker ();
491 syms_of_minibuf (); 487 syms_of_minibuf ();
492 syms_of_mocklisp (); 488 syms_of_mocklisp ();
493#ifdef subprocesses
494 syms_of_process (); 489 syms_of_process ();
495#endif /* subprocesses */
496 syms_of_search (); 490 syms_of_search ();
497#ifdef MULTI_SCREEN 491#ifdef MULTI_SCREEN
498 syms_of_screen (); 492 syms_of_screen ();
@@ -576,9 +570,7 @@ all of which are called before Emacs is actually killed.")
576 if (!NILP (Vrun_hooks) && !noninteractive) 570 if (!NILP (Vrun_hooks) && !noninteractive)
577 call1 (Vrun_hooks, intern ("kill-emacs-hook")); 571 call1 (Vrun_hooks, intern ("kill-emacs-hook"));
578 572
579#ifdef subprocesses
580 kill_buffer_processes (Qnil); 573 kill_buffer_processes (Qnil);
581#endif /* subprocesses */
582 574
583#ifdef VMS 575#ifdef VMS
584 kill_vms_processes (); 576 kill_vms_processes ();