summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-02-08 13:23:16 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-02-08 13:23:16 +0000
commitf25172013443eb112285f24a09b83900edb8a738 (patch)
tree678f9789da4edbccaa4836270985332e36f7f449 /perl.h
parent651b9576cc8d7812bbcba060854ec8a56f698aae (diff)
downloadperl-f25172013443eb112285f24a09b83900edb8a738.tar.gz
make safesysmalloc() etc., always available; safemalloc() et al are
now macros that point to the right malloc; fix various places in sources that need to always use safesysmalloc() et al p4raw-id: //depot/perl@2834
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/perl.h b/perl.h
index 206f6be56e..783f9042af 100644
--- a/perl.h
+++ b/perl.h
@@ -400,14 +400,15 @@ Malloc_t Perl_realloc _((Malloc_t where, MEM_SIZE nbytes));
* that causes clashes with case-insensitive linkers */
Free_t Perl_mfree _((Malloc_t where));
-# undef safemalloc
-# undef safecalloc
-# undef saferealloc
-# undef safefree
# define safemalloc Perl_malloc
# define safecalloc Perl_calloc
# define saferealloc Perl_realloc
# define safefree Perl_mfree
+#else /* MYMALLOC */
+# define safemalloc safesysmalloc
+# define safecalloc safesyscalloc
+# define saferealloc safesysrealloc
+# define safefree safesysfree
#endif /* MYMALLOC */
#if defined(STANDARD_C) && defined(I_STDDEF)