unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Emacs win32 cleanup
@ 2012-03-25 11:47 Fabrice Popineau
  2012-03-25 18:31 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Popineau @ 2012-03-25 11:47 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 900 bytes --]

This part of w32heap.c is obsolete for quite a long time.
It is not possible anymore to override heap_init() and heap_term()  in libc.
And it is of no use when compiling with the crt dll.

--- src/w32heap.c       2012-02-28 15:34:44 +0000
+++ src/w32heap.c       2012-03-25 11:32:33 +0000
@@ -305,26 +305,3 @@
     sbrk (need_to_alloc);
 }

-#if (_MSC_VER >= 1000 && _MSC_VER < 1300 && !defined (USE_CRT_DLL))
-
-/* MSVC 4.2 invokes these functions from mainCRTStartup to initialize
-   a heap via HeapCreate.  They are normally defined by the runtime,
-   but we override them here so that the unnecessary HeapCreate call
-   is not performed.  */
-
-int __cdecl
-_heap_init (void)
-{
-  /* Stepping through the assembly indicates that mainCRTStartup is
-     expecting a nonzero success return value.  */
-  return 1;
-}
-
-void __cdecl
-_heap_term (void)
-{
-  return;
-}
-
-#endif
-

-- 
Fabrice

[-- Attachment #2: Type: text/html, Size: 1317 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Emacs win32 cleanup
  2012-03-25 11:47 Emacs win32 cleanup Fabrice Popineau
@ 2012-03-25 18:31 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2012-03-25 18:31 UTC (permalink / raw)
  To: Fabrice Popineau; +Cc: emacs-devel

> From: Fabrice Popineau <fabrice.popineau@supelec.fr>
> Date: Sun, 25 Mar 2012 13:47:15 +0200
> 
> This part of w32heap.c is obsolete for quite a long time.
> It is not possible anymore to override heap_init() and heap_term()  in libc.
> And it is of no use when compiling with the crt dll.

Thanks, installed.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-25 18:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-25 11:47 Emacs win32 cleanup Fabrice Popineau
2012-03-25 18:31 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).