summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-12-06 08:42:11 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2014-12-06 14:30:54 -0500
commit3f39ca90d441ea8c46643321eda2a33ab51d0246 (patch)
tree33ded2925ebbf58975edfc1c878e993e59034369 /regcomp.c
parent2a43599bfdf94948614424bc4fd8d6b65cf195ec (diff)
downloadperl-3f39ca90d441ea8c46643321eda2a33ab51d0246.tar.gz
These functions are not used with ext/re.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c44
1 files changed, 24 insertions, 20 deletions
diff --git a/regcomp.c b/regcomp.c
index 3a9a5540e7..765692a1d3 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -8170,6 +8170,8 @@ S_invlist_set_len(pTHX_ SV* const invlist, const UV len, const bool offset)
assert(SvLEN(invlist) == 0 || SvCUR(invlist) <= SvLEN(invlist));
}
+#ifndef PERL_IN_XSUB_RE
+
PERL_STATIC_INLINE IV*
S_get_invlist_previous_index_addr(SV* invlist)
{
@@ -8204,6 +8206,28 @@ S_invlist_set_previous_index(SV* const invlist, const IV index)
*get_invlist_previous_index_addr(invlist) = index;
}
+PERL_STATIC_INLINE void
+S_invlist_trim(SV* const invlist)
+{
+ PERL_ARGS_ASSERT_INVLIST_TRIM;
+
+ assert(SvTYPE(invlist) == SVt_INVLIST);
+
+ /* Change the length of the inversion list to how many entries it currently
+ * has */
+ SvPV_shrink_to_cur((SV *) invlist);
+}
+
+PERL_STATIC_INLINE bool
+S_invlist_is_iterating(SV* const invlist)
+{
+ PERL_ARGS_ASSERT_INVLIST_IS_ITERATING;
+
+ return *(get_invlist_iter_addr(invlist)) < (STRLEN) UV_MAX;
+}
+
+#endif /* ifndef PERL_IN_XSUB_RE */
+
PERL_STATIC_INLINE UV
S_invlist_max(SV* const invlist)
{
@@ -8323,18 +8347,6 @@ S_invlist_extend(pTHX_ SV* const invlist, const UV new_max)
SvGROW((SV *)invlist, TO_INTERNAL_SIZE(new_max + 1));
}
-PERL_STATIC_INLINE void
-S_invlist_trim(SV* const invlist)
-{
- PERL_ARGS_ASSERT_INVLIST_TRIM;
-
- assert(SvTYPE(invlist) == SVt_INVLIST);
-
- /* Change the length of the inversion list to how many entries it currently
- * has */
- SvPV_shrink_to_cur((SV *) invlist);
-}
-
STATIC void
S__append_range_to_invlist(pTHX_ SV* const invlist,
const UV start, const UV end)
@@ -9295,14 +9307,6 @@ S_invlist_iternext(SV* invlist, UV* start, UV* end)
return TRUE;
}
-PERL_STATIC_INLINE bool
-S_invlist_is_iterating(SV* const invlist)
-{
- PERL_ARGS_ASSERT_INVLIST_IS_ITERATING;
-
- return *(get_invlist_iter_addr(invlist)) < (STRLEN) UV_MAX;
-}
-
PERL_STATIC_INLINE UV
S_invlist_highest(SV* const invlist)
{