diff options
author | Karl Williamson <khw@cpan.org> | 2021-04-11 20:06:40 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-08-31 08:37:01 -0600 |
commit | b269edc857b8bcf53ac3451c35113ad996cadb62 (patch) | |
tree | 148a82c3de40faaccfa598db550e9431eed758bb /makedef.pl | |
parent | 112f4f94ee0433b46530c806e4b4dee9f06bc382 (diff) | |
download | perl-b269edc857b8bcf53ac3451c35113ad996cadb62.tar.gz |
locale.c: Cache the current LC_CTYPE locale name
This is now used as a cache of length 1 to avoid having to lookup up the
UTF-8ness as often.
This commit also skips doing S_newctype() if the new boss is the same as
the old
Diffstat (limited to 'makedef.pl')
-rw-r--r-- | makedef.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/makedef.pl b/makedef.pl index 076ce88b8c..e1ccf3a733 100644 --- a/makedef.pl +++ b/makedef.pl @@ -553,6 +553,12 @@ unless ($define{USE_LOCALE_NUMERIC}) { ); } +unless ($define{USE_LOCALE_CTYPE}) { + ++$skip{$_} foreach qw( + PL_ctype_name + ); +} + unless ($define{'USE_C_BACKTRACE'}) { ++$skip{Perl_get_c_backtrace_dump}; ++$skip{Perl_dump_c_backtrace}; |