summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2017-05-22 15:57:07 +1000
committerKarl Williamson <khw@cpan.org>2022-04-13 09:45:34 -0600
commitd2c620e2b105e34de19834d5e24a3191579d4583 (patch)
treed3ef5e4372e88f219cb378a630611e6902cbaeee /proto.h
parent4303fd2da3dda68da2954d68ae885ed9fcba1b5b (diff)
downloadperl-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto.h b/proto.h
index 03830f8d7f..fd0b3cb1ce 100644
--- a/proto.h
+++ b/proto.h
@@ -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)