summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-05-02 06:45:01 -0600
committerKarl Williamson <khw@cpan.org>2021-05-31 10:56:32 -0600
commit77a6d54c0deb1165b37dcf11c21cd334ae2579bb (patch)
tree0ff8476aa593874fb3b77bd9a2439d5b73d3edcb /proto.h
parent24eef90b9c96f00a8311aae2f1708ca5cf712865 (diff)
downloadperl-77a6d54c0deb1165b37dcf11c21cd334ae2579bb.tar.gz
regcomp.c: Extract code from a too-large-function
S_regclass() is unwieldy. This commit splits it into two nearly equal size parts. More could be done.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index b174b3346c..37736a0d14 100644
--- a/proto.h
+++ b/proto.h
@@ -5847,6 +5847,9 @@ STATIC I32 S_make_trie(pTHX_ RExC_state_t *pRExC_state, regnode *startbranch, re
STATIC void S_nextchar(pTHX_ RExC_state_t *pRExC_state);
#define PERL_ARGS_ASSERT_NEXTCHAR \
assert(pRExC_state)
+STATIC U8 S_optimize_regclass(pTHX_ RExC_state_t *pRExC_state, SV* cp_list, SV* only_utf8_locale_list, SV* upper_latin1_only_utf8_matches, const U32 has_runtime_dependency, const U32 posixl, U8 * anyof_flags, bool * invert, regnode_offset * ret, I32 *flagp);
+#define PERL_ARGS_ASSERT_OPTIMIZE_REGCLASS \
+ assert(pRExC_state); assert(anyof_flags); assert(invert); assert(ret); assert(flagp)
STATIC void S_output_posix_warnings(pTHX_ RExC_state_t *pRExC_state, AV* posix_warnings);
#define PERL_ARGS_ASSERT_OUTPUT_POSIX_WARNINGS \
assert(pRExC_state); assert(posix_warnings)