diff options
author | Yves Orton <demerphq@gmail.com> | 2022-12-09 11:00:17 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2022-12-09 16:19:29 +0100 |
commit | 85900e28cc250e1c4603f11073b77d0c6b5cff46 (patch) | |
tree | acc41c05f436dd1063459753dda9b557f6261e6c /regen/unicode_constants.pl | |
parent | 6a6e5d037dad0702bc219f8265505037e1772552 (diff) | |
download | perl-85900e28cc250e1c4603f11073b77d0c6b5cff46.tar.gz |
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.
Diffstat (limited to 'regen/unicode_constants.pl')
-rw-r--r-- | regen/unicode_constants.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regen/unicode_constants.pl b/regen/unicode_constants.pl index 00c4983e80..cb17a110dc 100644 --- a/regen/unicode_constants.pl +++ b/regen/unicode_constants.pl @@ -869,7 +869,7 @@ foreach my $charset (get_supported_code_pages()) { $max_PRINT_A = sprintf "0x%02X", $max_PRINT_A; print $out_fh <<"EOT"; -# ifdef PERL_IN_REGCOMP_C +# ifdef PERL_IN_REGCOMP_ANY # define MAX_PRINT_A $max_PRINT_A /* The max code point that isPRINT_A */ # endif EOT @@ -931,7 +931,7 @@ $count = 0x110000 - $count; print $out_fh <<~"EOT"; /* The number of code points not matching \\pC */ - #ifdef PERL_IN_REGCOMP_C + #ifdef PERL_IN_REGCOMP_ANY # define NON_OTHER_COUNT $count #endif EOT |