Mercurial > hg > xemacs-beta
comparison src/ntheap.c @ 707:a307f9a2021d
[xemacs-hg @ 2001-12-20 05:49:28 by andyp]
sync with 21-4-6-windows
author | andyp |
---|---|
date | Thu, 20 Dec 2001 05:49:48 +0000 |
parents | b39c14581166 |
children | 943eaba38521 |
comparison
equal
deleted
inserted
replaced
706:c9bf82d465b5 | 707:a307f9a2021d |
---|---|
289 | 289 |
290 if (need_to_alloc) | 290 if (need_to_alloc) |
291 sbrk (need_to_alloc); | 291 sbrk (need_to_alloc); |
292 } | 292 } |
293 | 293 |
294 #if (_MSC_VER >= 1000) | 294 #if ((_MSC_VER >= 1000) && (_MSC_VER < 1300)) |
295 | 295 |
296 /* MSVC 4.2 invokes these functions from mainCRTStartup to initialize | 296 /* MSVC 4.2 invokes these functions from mainCRTStartup to initialize |
297 a heap via HeapCreate. They are normally defined by the runtime, | 297 a heap via HeapCreate. They are normally defined by the runtime, |
298 but we override them here so that the unnecessary HeapCreate call | 298 but we override them here so that the unnecessary HeapCreate call |
299 is not performed. */ | 299 is not performed. */ |
300 | 300 |
301 /* MSVC 7.0 does not allow you to redefine _heap_init or _heap_term. */ | |
302 | |
301 int __cdecl | 303 int __cdecl |
302 _heap_init (void) | 304 _heap_init (void) |
303 { | 305 { |
304 /* Stepping through the assembly indicates that mainCRTStartup is | 306 /* Stepping through the assembly indicates that mainCRTStartup is |
305 expecting a nonzero success return value. */ | 307 expecting a nonzero success return value. */ |