diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-02-08 13:23:16 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-02-08 13:23:16 +0000 |
commit | f25172013443eb112285f24a09b83900edb8a738 (patch) | |
tree | 678f9789da4edbccaa4836270985332e36f7f449 /perl.h | |
parent | 651b9576cc8d7812bbcba060854ec8a56f698aae (diff) | |
download | perl-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.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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) |