From f41910bf9320ae3f1312f3e832504e8b03da3f00 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 8 Oct 2022 06:49:01 -0600 Subject: handy.h: Set macro to false if can't ever be true It's unlikely that perl will be compiled with out the LC_CTYPE locale category being enabled. But if it isn't, there is no sense in having per-interpreter variables for various conditions in it, and no sense having code that tests those variables. This commit changes a macro to always yield 'false' when this is disabled, adds a new similar macro, and changes some occurrences that test for a variable to use the macros instead of the variables. That way the compiler knows these to conditions can never be true. --- makedef.pl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'makedef.pl') diff --git a/makedef.pl b/makedef.pl index c0f8ee1282..36ae63e06b 100644 --- a/makedef.pl +++ b/makedef.pl @@ -557,6 +557,8 @@ unless ($define{USE_LOCALE_NUMERIC}) { unless ($define{USE_LOCALE_CTYPE}) { ++$skip{$_} foreach qw( PL_ctype_name + PL_in_utf8_CTYPE_locale + PL_in_utf8_turkic_locale ); } -- cgit v1.2.1