summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-12-01 12:36:18 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-12-01 13:00:05 -0800
commita82b195bcec8edceae8d7f710b71cfcb1e8b1845 (patch)
treed653658bb50225af71730425c83e97023d69d831 /sv.c
parenta4f658f7073ec82bcbc9a325ed5433720c4eaa48 (diff)
downloadperl-a82b195bcec8edceae8d7f710b71cfcb1e8b1845.tar.gz
Use SvOOK_on
Now that SvOOK_on has a usable definition (i.e., it leaves the NIOK flags alone), we can use it and remove the comments warning against it.
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sv.c b/sv.c
index 8fc177e0e9..99d0d5ca0f 100644
--- a/sv.c
+++ b/sv.c
@@ -4907,7 +4907,7 @@ Perl_sv_chop(pTHX_ register SV *const sv, register const char *const ptr)
Move(pvx,SvPVX(sv),len,char);
*SvEND(sv) = '\0';
}
- SvFLAGS(sv) |= SVf_OOK;
+ SvOOK_on(sv);
old_delta = 0;
} else {
SvOOK_offset(sv, old_delta);
@@ -12034,8 +12034,7 @@ S_sv_dup_common(pTHX_ const SV *const sstr, CLONE_PARAMS *const param)
const struct xpvhv_aux * const saux = HvAUX(sstr);
struct xpvhv_aux * const daux = HvAUX(dstr);
/* This flag isn't copied. */
- /* SvOOK_on(hv) attacks the IV flags. */
- SvFLAGS(dstr) |= SVf_OOK;
+ SvOOK_on(dstr);
if (saux->xhv_name_count) {
HEK ** const sname = saux->xhv_name_u.xhvnameu_names;