summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-05-29 09:54:42 -0600
committerKarl Williamson <public@khwilliamson.com>2011-07-03 14:05:46 -0600
commitc56a880ba85aad6b8ba68de20153733c725a5c9c (patch)
treeb36632daaab31d1a53b69ebaf8092ead62f1d5f7 /regcomp.c
parent61bdbf381e9d66f094a47eb25d5b0274d9f14036 (diff)
downloadperl-c56a880ba85aad6b8ba68de20153733c725a5c9c.tar.gz
regcomp.c: Move a function around
This is so functions that operate on the same data are adjacent
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/regcomp.c b/regcomp.c
index 8635a10b98..31dd6db811 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -5878,6 +5878,17 @@ S_invlist_len(pTHX_ SV* const invlist)
return *get_invlist_len_addr(invlist);
}
+PERL_STATIC_INLINE void
+S_invlist_set_len(pTHX_ SV* const invlist, const UV len)
+{
+ /* Sets the current number of elements stored in the inversion list */
+
+ PERL_ARGS_ASSERT_INVLIST_SET_LEN;
+
+ SvCUR_set(invlist, TO_INTERNAL_SIZE(len));
+ *get_invlist_len_addr(invlist) = len;
+}
+
PERL_STATIC_INLINE UV
S_invlist_max(pTHX_ SV* const invlist)
{
@@ -5889,16 +5900,6 @@ S_invlist_max(pTHX_ SV* const invlist)
return FROM_INTERNAL_SIZE(SvLEN(invlist));
}
-PERL_STATIC_INLINE void
-S_invlist_set_len(pTHX_ SV* const invlist, const UV len)
-{
- /* Sets the current number of elements stored in the inversion list */
-
- PERL_ARGS_ASSERT_INVLIST_SET_LEN;
-
- SvCUR_set(invlist, TO_INTERNAL_SIZE(len));
- *get_invlist_len_addr(invlist) = len;
-}
#ifndef PERL_IN_XSUB_RE
SV*