emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r107677: Remove dead MSVC-specific co


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r107677: Remove dead MSVC-specific code.
Date: Sun, 25 Mar 2012 20:30:50 +0200
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 107677
author: Fabrice Popineau <address@hidden>
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sun 2012-03-25 20:30:50 +0200
message:
  Remove dead MSVC-specific code.
  
   src/w32heap.c (_heap_init, _heap_term): Remove dead MSVC-specific code.
modified:
  src/ChangeLog
  src/w32heap.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-03-25 15:35:23 +0000
+++ b/src/ChangeLog     2012-03-25 18:30:50 +0000
@@ -1,3 +1,8 @@
+2012-03-25  Fabrice Popineau  <address@hidden>
+
+       * w32heap.c (_heap_init, _heap_term): Remove dead MSVC-specific
+       code.
+
 2012-03-25  Kenichi Handa  <address@hidden>
 
        * dispextern.h (struct glyph): Change the bit length of

=== modified file 'src/w32heap.c'
--- a/src/w32heap.c     2012-01-19 07:21:25 +0000
+++ b/src/w32heap.c     2012-03-25 18:30:50 +0000
@@ -296,27 +296,3 @@
   if (need_to_alloc)
     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
-


reply via email to

[Prev in Thread] Current Thread [Next in Thread]