unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@supelec.fr>
To: emacs-devel@gnu.org
Subject: Emacs win32 cleanup
Date: Sun, 25 Mar 2012 13:47:15 +0200	[thread overview]
Message-ID: <CAFgFV9OkQ1jCUg_eGEqUCBMeTf6=2Vrvkfvq-Kh4s0D4CkG2sg@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2012-03-25 11:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-25 11:47 Fabrice Popineau [this message]
2012-03-25 18:31 ` Emacs win32 cleanup Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFgFV9OkQ1jCUg_eGEqUCBMeTf6=2Vrvkfvq-Kh4s0D4CkG2sg@mail.gmail.com' \
    --to=fabrice.popineau@supelec.fr \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).