comparison src/mem-limits.h @ 251:677f6a0ee643 r20-5b24

Import from CVS: tag r20-5b24
author cvs
date Mon, 13 Aug 2007 10:19:59 +0200
parents f220cc83d72e
children c5d627a313b1
comparison
equal deleted inserted replaced
250:f385a461c9aa 251:677f6a0ee643
127 static POINTER data_space_start; 127 static POINTER data_space_start;
128 128
129 /* Number of bytes of writable memory we can expect to be able to get */ 129 /* Number of bytes of writable memory we can expect to be able to get */
130 extern unsigned int lim_data; 130 extern unsigned int lim_data;
131 131
132 #ifdef HEAP_IN_DATA
133 extern unsigned long static_heap_size;
134 extern int initialized;
135 static void
136 get_lim_data (void)
137 {
138 if (!initialized)
139 {
140 lim_data = -1; /* static_heap_size; */
141 }
142 else
143 {
144 lim_data = -1;
145 }
146 }
147 #else
132 #ifdef NO_LIM_DATA 148 #ifdef NO_LIM_DATA
133 static void 149 static void
134 get_lim_data (void) 150 get_lim_data (void)
135 { 151 {
136 lim_data = -1; 152 lim_data = -1;
157 173
158 lim_data -= (long) data_space_start; 174 lim_data -= (long) data_space_start;
159 } 175 }
160 176
161 #else /* not USG */ 177 #else /* not USG */
162 #if defined( WINDOWSNT ) || defined (__CYGWIN32__) 178 #if defined( WINDOWSNT )
163 179
164 static void 180 static void
165 get_lim_data (void) 181 get_lim_data (void)
166 { 182 {
167 extern unsigned long data_region_size; 183 extern unsigned long data_region_size;
204 } 220 }
205 #endif /* BSD4_2 */ 221 #endif /* BSD4_2 */
206 #endif /* not WINDOWSNT */ 222 #endif /* not WINDOWSNT */
207 #endif /* not USG */ 223 #endif /* not USG */
208 #endif /* not NO_LIM_DATA */ 224 #endif /* not NO_LIM_DATA */
225 #endif /* not HEAP_IN_DATA */
209 226
210 #endif /* _XEMACS_MEM_LIMITS_H_ */ 227 #endif /* _XEMACS_MEM_LIMITS_H_ */