/* now use the inline version in the proper function */
+#ifndef PURIFY
+
+/* This isn't being used with -DPURIFY, so don't declare it. Otherwise
+ compilers issue warnings. */
+
STATIC void *
S_new_body(pTHX_ size_t size, svtype sv_type)
{
return xpv;
}
+#endif
+
/* return a thing to the free list */
#define del_body(thing, root) \
sv_force_normal_flags(sv, 0);
}
- if (SvTYPE(sv) == mt)
+ if (old_type == mt)
return;
- if (SvTYPE(sv) > mt)
+ if (old_type > mt)
Perl_croak(aTHX_ "sv_upgrade from type %d down to type %d",
- (int)SvTYPE(sv), (int)mt);
+ (int)old_type, (int)mt);
old_body = SvANY(sv);
So we are careful and work out the size of used parts of all the
structures. */
- switch (SvTYPE(sv)) {
+ switch (old_type) {
case SVt_NULL:
break;
case SVt_IV: