diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-12-06 08:42:11 -0500 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-12-06 14:30:54 -0500 |
commit | 3f39ca90d441ea8c46643321eda2a33ab51d0246 (patch) | |
tree | 33ded2925ebbf58975edfc1c878e993e59034369 /regcomp.c | |
parent | 2a43599bfdf94948614424bc4fd8d6b65cf195ec (diff) | |
download | perl-3f39ca90d441ea8c46643321eda2a33ab51d0246.tar.gz |
These functions are not used with ext/re.
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 44 |
1 files changed, 24 insertions, 20 deletions
@@ -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) { |