diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-09-02 15:57:24 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-09-02 15:57:24 +0100 |
commit | d6747b7ae5ffdaaf8364760ca2abdcb734c664c8 (patch) | |
tree | 62184510cbe78416af2c7279db9a8119931bbe27 /hv.c | |
parent | f4b4ed7b4eca79b25054dfeafa0aac0dbd41a507 (diff) | |
download | perl-d6747b7ae5ffdaaf8364760ca2abdcb734c664c8.tar.gz |
Change the first argument of Perl_fetch_cop_label() to COP *
From a suggestion from Ben Morrow.
The first argument used to be struct refcounted_he *, which exposed an
implementation detail - that the COP's labels are (now) stored in this way.
Google Code Search and an unpacked CPAN both fail to find any users of this
API, so the impact should be minimal.
Diffstat (limited to 'hv.c')
-rw-r--r-- | hv.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2940,8 +2940,11 @@ Perl_refcounted_he_free(pTHX_ struct refcounted_he *he) { /* pp_entereval is aware that labels are stored with a key ':' at the top of the linked list. */ const char * -Perl_fetch_cop_label(pTHX_ struct refcounted_he *const chain, STRLEN *len, - U32 *flags) { +Perl_fetch_cop_label(pTHX_ COP *cop, STRLEN *len, U32 *flags) { + struct refcounted_he *const chain = cop->cop_hints_hash; + + PERL_ARGS_ASSERT_FETCH_COP_LABEL; + if (!chain) return NULL; #ifdef USE_ITHREADS |