From a82b195bcec8edceae8d7f710b71cfcb1e8b1845 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Thu, 1 Dec 2011 12:36:18 -0800 Subject: 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. --- sv.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sv.c') 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; -- cgit v1.2.1