summaryrefslogtreecommitdiff
path: root/inline.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-11-17 19:15:06 -0700
committerKarl Williamson <khw@cpan.org>2020-11-18 05:11:16 -0700
commit3af695f3325716a03a79f2b1a27b032ed4698bfa (patch)
tree675921581d14dace2a5b8d46fd297a1822895183 /inline.h
parent2228b3d92dc6b04915a758fc6d3e4d724fb976c7 (diff)
downloadperl-3af695f3325716a03a79f2b1a27b032ed4698bfa.tar.gz
Move regcurly to regcomp.c (from inline.h)
This function is called only at compile time; experience has shown that compile-time operations are not time-critical. And future commits will lengthen it, making it not practically inlinable anyway.
Diffstat (limited to 'inline.h')
-rw-r--r--inline.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/inline.h b/inline.h
index 96f706ed8b..5ada1555d1 100644
--- a/inline.h
+++ b/inline.h
@@ -1994,36 +1994,6 @@ S_lossless_NV_to_IV(const NV nv, IV *ivp)
#endif
-/* ------------------ regcomp.c, toke.c ------------ */
-
-#if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_TOKE_C)
-
-/*
- - regcurly - a little FSA that accepts {\d+,?\d*}
- Pulled from reg.c.
- */
-PERL_STATIC_INLINE bool
-S_regcurly(const char *s)
-{
- PERL_ARGS_ASSERT_REGCURLY;
-
- if (*s++ != '{')
- return FALSE;
- if (!isDIGIT(*s))
- return FALSE;
- while (isDIGIT(*s))
- s++;
- if (*s == ',') {
- s++;
- while (isDIGIT(*s))
- s++;
- }
-
- return *s == '}';
-}
-
-#endif
-
/* ------------------ pp.c, regcomp.c, toke.c, universal.c ------------ */
#if defined(PERL_IN_PP_C) || defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_TOKE_C) || defined(PERL_IN_UNIVERSAL_C)