summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-08-15 15:27:08 -0600
committerKarl Williamson <public@khwilliamson.com>2013-09-24 11:36:18 -0600
commitcf78de0bc205ee8b764da82ab0cc9c394067453e (patch)
treea9680c8e542663ecafc296c2c50e70fb3704093a /proto.h
parent9b1eb0677ed31eb8828470cdf12198cc308a4998 (diff)
downloadperl-cf78de0bc205ee8b764da82ab0cc9c394067453e.tar.gz
regcomp.c: Use STR_WITH_LEN to avoid bookkeeping
By changing the order of the parameters to the static function S_add_data, we can call it with STR_WITH_LEN and avoid a human having to count characters.
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 d616510c4b..91949484fb 100644
--- a/proto.h
+++ b/proto.h
@@ -6533,10 +6533,10 @@ STATIC SV* S__new_invlist_C_array(pTHX_ const UV* const list)
PERL_STATIC_INLINE SV* S_add_cp_to_invlist(pTHX_ SV* invlist, const UV cp)
__attribute__warn_unused_result__;
-STATIC U32 S_add_data(RExC_state_t* const pRExC_state, const U32 n, const char* const s)
+STATIC U32 S_add_data(RExC_state_t* const pRExC_state, const char* const s, const U32 n)
__attribute__warn_unused_result__
__attribute__nonnull__(1)
- __attribute__nonnull__(3);
+ __attribute__nonnull__(2);
#define PERL_ARGS_ASSERT_ADD_DATA \
assert(pRExC_state); assert(s)