diff options
author | Karl Williamson <khw@cpan.org> | 2020-11-17 19:15:06 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-11-18 05:11:16 -0700 |
commit | 3af695f3325716a03a79f2b1a27b032ed4698bfa (patch) | |
tree | 675921581d14dace2a5b8d46fd297a1822895183 /inline.h | |
parent | 2228b3d92dc6b04915a758fc6d3e4d724fb976c7 (diff) | |
download | perl-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.h | 30 |
1 files changed, 0 insertions, 30 deletions
@@ -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) |