From 85900e28cc250e1c4603f11073b77d0c6b5cff46 Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Fri, 9 Dec 2022 11:00:17 +0100 Subject: regcomp.c - decompose into smaller files This splits a bunch of the subcomponents of the regex engine into smaller files. regcomp_debug.c regcomp_internal.h regcomp_invlist.c regcomp_study.c regcomp_trie.c The only real change besides to the build machine to achieve the split is to also adds some new defines which can be used in embed.fnc to control exports without having to enumerate /every/ regex engine file. For instance all of regcomp*.c defines PERL_IN_REGCOMP_ANY, and this is used in embed.fnc to manage exports. --- inline.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inline.h') diff --git a/inline.h b/inline.h index d7de926263..8c4d10f1d5 100644 --- a/inline.h +++ b/inline.h @@ -2639,7 +2639,7 @@ S_lossless_NV_to_IV(const NV nv, IV *ivp) /* ------------------ 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) +#if defined(PERL_IN_PP_C) || defined(PERL_IN_REGCOMP_ANY) || defined(PERL_IN_TOKE_C) || defined(PERL_IN_UNIVERSAL_C) #define MAX_CHARSET_NAME_LENGTH 2 -- cgit v1.2.1