diff options
-rw-r--r-- | global.sym | 1 | ||||
-rw-r--r-- | pp.c | 2 | ||||
-rw-r--r-- | proto.h | 1 | ||||
-rw-r--r-- | sv.c | 17 |
4 files changed, 2 insertions, 19 deletions
diff --git a/global.sym b/global.sym index cde99974d2..a51b822a25 100644 --- a/global.sym +++ b/global.sym @@ -1098,7 +1098,6 @@ sv_2uv sv_add_arena sv_backoff sv_bless -sv_bless3 sv_catpvf sv_catpv sv_catpvn @@ -426,7 +426,7 @@ PP(pp_bless) else stash = gv_stashsv(POPs, TRUE); - (void)sv_bless3(TOPs, stash, TRUE); + (void)sv_bless(TOPs, stash); RETURN; } @@ -465,7 +465,6 @@ UV sv_2uv _((SV* sv)); void sv_add_arena _((char* ptr, U32 size, U32 flags)); int sv_backoff _((SV* sv)); SV* sv_bless _((SV* sv, HV* stash)); -SV* sv_bless3 _((SV* sv, HV* stash, bool zaptilde)); void sv_catpvf _((SV* sv, const char* pat, ...)); void sv_catpv _((SV* sv, char* ptr)); void sv_catpvn _((SV* sv, char* ptr, STRLEN len)); @@ -4054,14 +4054,9 @@ I32 n; } SV* -#ifndef CAN_PROTOTYPE -sv_bless3(sv,stash,zaptilde) +sv_bless(sv,stash) SV* sv; HV* stash; -bool zaptilde; -#else -sv_bless3(SV *sv, HV *stash, bool zaptilde) -#endif /* CAN_PROTOTYPE */ { dTHR; SV *ref; @@ -4074,8 +4069,6 @@ sv_bless3(SV *sv, HV *stash, bool zaptilde) if (SvOBJECT(ref)) { if (SvTYPE(ref) != SVt_PVIO) --sv_objcount; - if (zaptilde && SvRMAGICAL(ref)) - sv_unmagic(ref, '~'); /* stop cross-class pointer forgery */ SvREFCNT_dec(SvSTASH(ref)); } } @@ -4095,14 +4088,6 @@ sv_bless3(SV *sv, HV *stash, bool zaptilde) return sv; } -SV* -sv_bless(sv,stash) -SV* sv; -HV* stash; -{ - return sv_bless3(sv, stash, FALSE); -} - static void sv_unglob(sv) SV* sv; |