This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regen/regcomp.pl: Generate #defines for UTF8ness
authorKarl Williamson <khw@cpan.org>
Wed, 14 Oct 2020 14:27:41 +0000 (08:27 -0600)
committerKarl Williamson <khw@cpan.org>
Wed, 14 Oct 2020 14:45:37 +0000 (08:45 -0600)
commitce553cf576f837c8b843c307e2e1c957d8bab24d
tree9483bd6ef197e2efbe6a5470af1e9dab49e41c5b
parent519d76f5929997820de5bb942a6e6be7f1bf60bd
regen/regcomp.pl: Generate #defines for UTF8ness

This causes #defines to be generated for regexec.c to use in switch
statements, so that for each opcode there that is a case: there are
actually 4 cases, for the the target being UTF-8 or not, combined with
the pattern being UTF-8 or not.

This will be used in future commits to simplify things.
regen/regcomp.pl
regnodes.h