diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-04-02 11:17:58 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-04-02 11:17:58 +0000 |
commit | 623e66097f3d3c76e4fbfed49657029a98953c17 (patch) | |
tree | 4304a16273ac0891e56eafbcf6a80baef63a7fdb /utf8.c | |
parent | 38ab35f8085a56081a4dbd8b974815dee28ebfd1 (diff) | |
download | perl-623e66097f3d3c76e4fbfed49657029a98953c17.tar.gz |
Abstract all reads/writes of the hints in COPs with 2 new macros,
CopHINTS_get() and CopHINTS_set().
p4raw-id: //depot/perl@27677
Diffstat (limited to 'utf8.c')
-rw-r--r-- | utf8.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1609,7 +1609,7 @@ Perl_swash_init(pTHX_ const char* pkg, const char* name, SV *listsv, I32 minbits const char* const pv = SvPV_const(tokenbufsv, len); Copy(pv, PL_tokenbuf, len+1, char); - PL_curcop->op_private = (U8)(PL_hints & HINT_PRIVATE_MASK); + CopHINTS_set(PL_curcop, PL_hints); } if (!SvROK(retval) || SvTYPE(SvRV(retval)) != SVt_PVHV) { if (SvPOK(retval)) @@ -1710,7 +1710,7 @@ Perl_swash_fetch(pTHX_ SV *swash, const U8 *ptr, bool do_utf8) needents); if (IN_PERL_COMPILETIME) - PL_curcop->op_private = (U8)(PL_hints & HINT_PRIVATE_MASK); + CopHINTS_set(PL_curcop, PL_hints); svp = hv_store(hv, (const char *)ptr, klen, swatch, 0); |