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 /proto.h | |
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 'proto.h')
-rw-r--r-- | proto.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -6947,7 +6947,11 @@ PERL_CALLCONV void Perl_sys_init3(int* argc, char*** argv, char*** env) assert(argc); assert(argv); assert(env) PERL_CALLCONV void Perl_sys_term(void); -PERL_CALLCONV const char * Perl_fetch_cop_label(pTHX_ struct refcounted_he *const chain, STRLEN *len, U32 *flags); +PERL_CALLCONV const char * Perl_fetch_cop_label(pTHX_ COP *const cop, STRLEN *len, U32 *flags) + __attribute__nonnull__(pTHX_1); +#define PERL_ARGS_ASSERT_FETCH_COP_LABEL \ + assert(cop) + PERL_CALLCONV void Perl_store_cop_label(pTHX_ COP *cop, const char *label, STRLEN len, U32 flags) __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2); |