comparison src/mem-limits.h @ 1399:dbb56cda0b28

(start_of_data): Removed extra defn. (get_lim_data): Define to return void.
author Roland McGrath <roland@gnu.org>
date Mon, 12 Oct 1992 19:10:02 +0000
parents d2ae5897e43c
children a321ed0fa3ae
comparison
equal deleted inserted replaced
1398:70d0cd4c5bff 1399:dbb56cda0b28
64 static POINTER data_space_start; 64 static POINTER data_space_start;
65 65
66 /* Number of bytes of writable memory we can expect to be able to get */ 66 /* Number of bytes of writable memory we can expect to be able to get */
67 static unsigned int lim_data; 67 static unsigned int lim_data;
68 68
69 #ifndef emacs
70 #define start_of_data (void *) &_end
71 #endif
72
73 #ifdef USG 69 #ifdef USG
74 70
71 void
75 get_lim_data () 72 get_lim_data ()
76 { 73 {
77 extern long ulimit (); 74 extern long ulimit ();
78 75
79 #ifdef ULIMIT_BREAK_VALUE 76 #ifdef ULIMIT_BREAK_VALUE
86 } 83 }
87 84
88 #else /* not USG */ 85 #else /* not USG */
89 #ifndef BSD4_2 86 #ifndef BSD4_2
90 87
88 void
91 get_lim_data () 89 get_lim_data ()
92 { 90 {
93 lim_data = vlimit (LIM_DATA, -1); 91 lim_data = vlimit (LIM_DATA, -1);
94 } 92 }
95 93
96 #else /* BSD4_2 */ 94 #else /* BSD4_2 */
97 95
96 void
98 get_lim_data () 97 get_lim_data ()
99 { 98 {
100 struct rlimit XXrlimit; 99 struct rlimit XXrlimit;
101 100
102 getrlimit (RLIMIT_DATA, &XXrlimit); 101 getrlimit (RLIMIT_DATA, &XXrlimit);