diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-07-13 01:25:07 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-07-13 01:25:07 +0000 |
commit | c70c8a0a59777ed7fb7075471185210bc2169b49 (patch) | |
tree | 86550314a4762842631adbbdf7c29d3bdc231c3f | |
parent | b338183147e566f942b72c505aee8119791478c2 (diff) | |
download | perl-c70c8a0a59777ed7fb7075471185210bc2169b49.tar.gz |
add a few more PURIFY guards
p4raw-id: //depot/perl@1460
-rw-r--r-- | av.c | 2 | ||||
-rw-r--r-- | sv.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -92,7 +92,7 @@ av_extend(AV *av, I32 key) U32 bytes; #endif -#ifdef MYMALLOC +#if defined(MYMALLOC) && !defined(PURIFY) newmax = malloced_size((void*)AvALLOC(av))/sizeof(SV*) - 1; if (key <= newmax) @@ -1118,13 +1118,13 @@ sv_grow(SV* sv, unsigned long newlen) s = SvPVX(sv); if (newlen > SvLEN(sv)) { /* need more room? */ if (SvLEN(sv) && s) { -#ifdef MYMALLOC +#if defined(MYMALLOC) && !defined(PURIFY) STRLEN l = malloced_size((void*)SvPVX(sv)); if (newlen <= l) { SvLEN_set(sv, l); return s; } else -#endif +#endif Renew(s,newlen,char); } else |