diff options
author | Karl Williamson <khw@cpan.org> | 2020-12-21 09:26:05 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2021-02-10 07:49:20 -0700 |
commit | d9edeb134fe2401a95ccd308c53dc214034e9c6b (patch) | |
tree | 412e9fac69868915155a67be35db5291105a0e98 /proto.h | |
parent | 7d997a145fef03ebd5e19b1e5116313520c23d6c (diff) | |
download | perl-d9edeb134fe2401a95ccd308c53dc214034e9c6b.tar.gz |
regexec.c: Make internal function static
This used to be called from utf8.c, but no longer; no need to make it
other than static. This allows the compiler to better optimize.
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -6214,6 +6214,10 @@ PERL_STATIC_INLINE I32 S_foldEQ_latin1_s2_folded(const char* a, const char* b, I #define PERL_ARGS_ASSERT_FOLDEQ_LATIN1_S2_FOLDED \ assert(a); assert(b) #endif +STATIC bool S_isFOO_lc(pTHX_ const U8 classnum, const U8 character) + __attribute__warn_unused_result__; +#define PERL_ARGS_ASSERT_ISFOO_LC + STATIC bool S_isFOO_utf8_lc(pTHX_ const U8 classnum, const U8* character, const U8* e) __attribute__warn_unused_result__; #define PERL_ARGS_ASSERT_ISFOO_UTF8_LC \ @@ -6295,12 +6299,6 @@ STATIC void S_to_utf8_substr(pTHX_ regexp * prog); #define PERL_ARGS_ASSERT_TO_UTF8_SUBSTR \ assert(prog) #endif -#if defined(PERL_IN_REGEXEC_C) || defined(PERL_IN_UTF8_C) -PERL_CALLCONV bool Perl_isFOO_lc(pTHX_ const U8 classnum, const U8 character) - __attribute__warn_unused_result__; -#define PERL_ARGS_ASSERT_ISFOO_LC - -#endif #if defined(PERL_IN_SCOPE_C) STATIC void S_save_pushptri32ptr(pTHX_ void *const ptr1, const I32 i, void *const ptr2, const int type); #define PERL_ARGS_ASSERT_SAVE_PUSHPTRI32PTR |