diff options
author | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-10-03 15:23:25 +0000 |
---|---|---|
committer | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-10-03 15:23:25 +0000 |
commit | 5d3fdfebb3d34f909dfbefe2c2cdf38bab171cf9 (patch) | |
tree | 50749a36a71dfa32497380d62e7fb1f4d68180d6 /sv.c | |
parent | fba3b22e783d72569126ff6fe76f3cb6cd1f043b (diff) | |
download | perl-5d3fdfebb3d34f909dfbefe2c2cdf38bab171cf9.tar.gz |
Back out sv_bless3 change which made pp_bless zap '~'-magic.
p4raw-id: //depot/perl@104
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -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; |