summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-10-03 15:23:25 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-10-03 15:23:25 +0000
commit5d3fdfebb3d34f909dfbefe2c2cdf38bab171cf9 (patch)
tree50749a36a71dfa32497380d62e7fb1f4d68180d6 /sv.c
parentfba3b22e783d72569126ff6fe76f3cb6cd1f043b (diff)
downloadperl-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.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/sv.c b/sv.c
index e4214c6b8d..0f5c107dfe 100644
--- a/sv.c
+++ b/sv.c
@@ -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;