Get rid of include of <stdlib.h>, which is not guaranteed to be present
authorFred Fish <fnf@specifix.com>
Tue, 7 Apr 1992 03:53:12 +0000 (03:53 +0000)
committerFred Fish <fnf@specifix.com>
Tue, 7 Apr 1992 03:53:12 +0000 (03:53 +0000)
even when __STDC__ is defined.  This also causes the ugly malloc/realloc/etc
kludge to go away.

mmalloc/ChangeLog
mmalloc/mmalloc.h

index 6c80339f8617155d15fab4b8244397a2d15860a5..383f2fe5cf8fb47a64e34fe41d95526fe366a893 100644 (file)
@@ -1,3 +1,8 @@
+Mon Apr  6 20:49:33 1992  Fred Fish  (fnf@cygnus.com)
+
+       * mmalloc.h:  Remove include of <stdlib.h>.  This also gets rid
+       of the ugly kludge installed on 1-Apr-92.
+
 Mon Apr  6 16:33:37 1992  Stu Grossman  (grossman at cygnus.com)
 
        * detach.c (mmalloc_detach):  Arg should be PTR, not void *.
index 6698501ac009393efee1532cc42cac23ac514b93..db62f1dfdcbdd42b76cc245eba18ce6879091fc0 100644 (file)
@@ -26,21 +26,8 @@ Cambridge, MA 02139, USA.
 #ifndef __MMALLOC_H
 #define __MMALLOC_H 1
 
-/* Ugly kludge to work around problem with some vendors (Sun for example)
-   that ship the ANSI <stdlib.h> file with non-ANSI compliant declarations
-   for malloc(), realloc(), calloc(), and free().  Since we don't use
-   these functions internally, but simply provide compatible replacements
-   layered on top of the m* equivalents, just hide whatever definitions
-   <stdlib.h> might supply. */
-
-#define malloc hide_malloc
-#define calloc hide_calloc
-#define realloc hide_realloc
-#define free hide_free
-
 #ifdef __STDC__
 #  include <stddef.h>
-#  include <stdlib.h>
 #  define PTR void *
 #  define CONST const
 #  define PARAMS(paramlist) paramlist
@@ -65,10 +52,6 @@ Cambridge, MA 02139, USA.
 #undef realloc
 #undef free
 
-#if defined(USG)
-#  include <string.h>
-#endif
-
 #ifndef MIN
 #  define MIN(A, B) ((A) < (B) ? (A) : (B))
 #endif
This page took 0.027 seconds and 4 git commands to generate.