aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2010-07-02 00:05:09 -0700
committerDan Nicolaescu2010-07-02 00:05:09 -0700
commit986011195e5c40b9644c21da166c12cb34176350 (patch)
tree524d8a827c58aa109eeaba640241a881950430e7 /src
parentc49d071ad0904c8700dc64fff24abde0ba7d10c4 (diff)
downloademacs-986011195e5c40b9644c21da166c12cb34176350.tar.gz
emacs-986011195e5c40b9644c21da166c12cb34176350.zip
Cleanup old code.
* src/dired.c (BSD4_3): Remove all uses, redundant with BSD4_2. * src/syssignal.h: Remove code for Lynx, not supported anymore. * src/vm-limit.c: Remove unused code the depends on emacs not being defined and NO_LIM_DATA being defined. * src/mem-limits.h: Remove dead code.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog9
-rw-r--r--src/dired.c8
-rw-r--r--src/mem-limits.h10
-rw-r--r--src/syssignal.h3
-rw-r--r--src/vm-limit.c16
5 files changed, 14 insertions, 32 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2a40d0d75c8..45d8bf3fc4f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,12 @@
12010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2
3 Cleanup old code.
4 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
5 * syssignal.h: Remove code for Lynx, not supported anymore.
6 * vm-limit.c: Remove unused code the depends on emacs not being
7 defined and NO_LIM_DATA being defined.
8 * mem-limits.h: Remove dead code.
9
12010-07-01 Jan Djärv <jan.h.d@swipnet.se> 102010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2 11
3 * window.c (Fwindow_absolute_pixel_edges): Doc fix. 12 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
diff --git a/src/dired.c b/src/dired.c
index a3ea23df2f6..c7f4774b991 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -979,10 +979,10 @@ so last access time will always be midnight of that day. */)
979 Lisp_Object values[12]; 979 Lisp_Object values[12];
980 Lisp_Object encoded; 980 Lisp_Object encoded;
981 struct stat s; 981 struct stat s;
982#if defined (BSD4_2) || defined (BSD4_3) 982#ifdef BSD4_2
983 Lisp_Object dirname; 983 Lisp_Object dirname;
984 struct stat sdir; 984 struct stat sdir;
985#endif 985#endif /* BSD4_2 */
986 char modes[10]; 986 char modes[10];
987 Lisp_Object handler; 987 Lisp_Object handler;
988 struct gcpro gcpro1; 988 struct gcpro gcpro1;
@@ -1049,7 +1049,7 @@ so last access time will always be midnight of that day. */)
1049 1049
1050 filemodestring (&s, modes); 1050 filemodestring (&s, modes);
1051 values[8] = make_string (modes, 10); 1051 values[8] = make_string (modes, 10);
1052#if defined (BSD4_2) || defined (BSD4_3) /* file gid will be dir gid */ 1052#ifdef BSD4_2 /* file gid will be dir gid */
1053 dirname = Ffile_name_directory (filename); 1053 dirname = Ffile_name_directory (filename);
1054 if (! NILP (dirname)) 1054 if (! NILP (dirname))
1055 encoded = ENCODE_FILE (dirname); 1055 encoded = ENCODE_FILE (dirname);
@@ -1059,7 +1059,7 @@ so last access time will always be midnight of that day. */)
1059 values[9] = Qt; 1059 values[9] = Qt;
1060#else /* file gid will be egid */ 1060#else /* file gid will be egid */
1061 values[9] = (s.st_gid != getegid ()) ? Qt : Qnil; 1061 values[9] = (s.st_gid != getegid ()) ? Qt : Qnil;
1062#endif /* BSD4_2 (or BSD4_3) */ 1062#endif /* not BSD4_2 */
1063 if (!FIXNUM_OVERFLOW_P (s.st_ino)) 1063 if (!FIXNUM_OVERFLOW_P (s.st_ino))
1064 /* Keep the most common cases as integers. */ 1064 /* Keep the most common cases as integers. */
1065 values[10] = make_number (s.st_ino); 1065 values[10] = make_number (s.st_ino);
diff --git a/src/mem-limits.h b/src/mem-limits.h
index d811968b13f..16e6b15d922 100644
--- a/src/mem-limits.h
+++ b/src/mem-limits.h
@@ -49,15 +49,7 @@ extern int etext, __data_start; weak_extern (__data_start)
49#define BSD4_2 49#define BSD4_2
50#endif 50#endif
51 51
52#ifndef BSD4_2 52#ifdef BSD4_2
53#ifndef USG
54#ifndef MSDOS
55#ifndef WINDOWSNT
56#include <sys/vlimit.h>
57#endif /* not WINDOWSNT */
58#endif /* not MSDOS */
59#endif /* not USG */
60#else /* if BSD4_2 */
61#include <sys/time.h> 53#include <sys/time.h>
62#include <sys/resource.h> 54#include <sys/resource.h>
63#endif /* BSD4_2 */ 55#endif /* BSD4_2 */
diff --git a/src/syssignal.h b/src/syssignal.h
index 9a145b78cb1..71a69dfa413 100644
--- a/src/syssignal.h
+++ b/src/syssignal.h
@@ -113,9 +113,6 @@ sigset_t sys_sigsetmask P_ ((sigset_t new_mask));
113#endif 113#endif
114#if defined (SIGIO) && defined (BROKEN_SIGIO) 114#if defined (SIGIO) && defined (BROKEN_SIGIO)
115# undef SIGIO 115# undef SIGIO
116# if defined (__Lynx__)
117# undef SIGPOLL /* Defined as SIGIO on LynxOS */
118# endif
119#endif 116#endif
120#if defined (SIGPOLL) && defined (BROKEN_SIGPOLL) 117#if defined (SIGPOLL) && defined (BROKEN_SIGPOLL)
121#undef SIGPOLL 118#undef SIGPOLL
diff --git a/src/vm-limit.c b/src/vm-limit.c
index a5b07eb50da..1f401601bbf 100644
--- a/src/vm-limit.c
+++ b/src/vm-limit.c
@@ -23,13 +23,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
23#include "lisp.h" 23#include "lisp.h"
24#endif 24#endif
25 25
26#ifndef emacs
27#include <stddef.h>
28typedef size_t SIZE;
29typedef void *POINTER;
30#define EXCEEDS_LISP_PTR(x) 0
31#endif
32
33#include "mem-limits.h" 26#include "mem-limits.h"
34 27
35#ifdef HAVE_GETRLIMIT 28#ifdef HAVE_GETRLIMIT
@@ -58,14 +51,6 @@ static POINTER data_space_start;
58static unsigned long lim_data; 51static unsigned long lim_data;
59 52
60 53
61#ifdef NO_LIM_DATA
62static void
63get_lim_data ()
64{
65 lim_data = -1;
66}
67#else /* not NO_LIM_DATA */
68
69#if defined (HAVE_GETRLIMIT) && defined (RLIMIT_AS) 54#if defined (HAVE_GETRLIMIT) && defined (RLIMIT_AS)
70static void 55static void
71get_lim_data () 56get_lim_data ()
@@ -181,7 +166,6 @@ get_lim_data ()
181#endif /* not WINDOWSNT */ 166#endif /* not WINDOWSNT */
182#endif /* not USG */ 167#endif /* not USG */
183#endif /* not HAVE_GETRLIMIT */ 168#endif /* not HAVE_GETRLIMIT */
184#endif /* not NO_LIM_DATA */
185 169
186/* Verify amount of memory available, complaining if we're near the end. */ 170/* Verify amount of memory available, complaining if we're near the end. */
187 171