From: Gurusamy Sarathy Date: Mon, 13 Jul 1998 01:25:07 +0000 (+0000) Subject: add a few more PURIFY guards X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c70c8a0a59777ed7fb7075471185210bc2169b49;p=p5sagit%2Fp5-mst-13.2.git add a few more PURIFY guards p4raw-id: //depot/perl@1460 --- diff --git a/av.c b/av.c index 5aac5b1..d683df9 100644 --- a/av.c +++ b/av.c @@ -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) diff --git a/sv.c b/sv.c index 4bb6bca..7390d9c 100644 --- a/sv.c +++ b/sv.c @@ -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