diff options
author | Tony Cook <tony@develop-help.com> | 2017-05-22 15:57:07 +1000 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-04-13 09:45:34 -0600 |
commit | d2c620e2b105e34de19834d5e24a3191579d4583 (patch) | |
tree | d3ef5e4372e88f219cb378a630611e6902cbaeee /proto.h | |
parent | 4303fd2da3dda68da2954d68ae885ed9fcba1b5b (diff) | |
download | perl-d2c620e2b105e34de19834d5e24a3191579d4583.tar.gz |
Make arguments to S_invlist_is_iterating and S_invlist_max be const
Based on a patch originally by Andy Lester
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4462,7 +4462,7 @@ PERL_STATIC_INLINE void S_invlist_clear(pTHX_ SV* invlist); assert(invlist) #endif #ifndef PERL_NO_INLINE_FUNCTIONS -PERL_STATIC_INLINE UV S_invlist_max(SV* const invlist) +PERL_STATIC_INLINE UV S_invlist_max(const SV* const invlist) __attribute__warn_unused_result__; #define PERL_ARGS_ASSERT_INVLIST_MAX \ assert(invlist) @@ -5908,7 +5908,7 @@ PERL_STATIC_INLINE SV* S_invlist_contents(pTHX_ SV* const invlist, const bool tr #endif #ifndef PERL_NO_INLINE_FUNCTIONS -PERL_STATIC_INLINE bool S_invlist_is_iterating(SV* const invlist) +PERL_STATIC_INLINE bool S_invlist_is_iterating(const SV* const invlist) __attribute__warn_unused_result__; #define PERL_ARGS_ASSERT_INVLIST_IS_ITERATING \ assert(invlist) |