diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-12-01 12:36:18 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-12-01 13:00:05 -0800 |
commit | a82b195bcec8edceae8d7f710b71cfcb1e8b1845 (patch) | |
tree | d653658bb50225af71730425c83e97023d69d831 /sv.c | |
parent | a4f658f7073ec82bcbc9a325ed5433720c4eaa48 (diff) | |
download | perl-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |