This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix FEATURE_${NAME}_IS_ENABLED macro for default features
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Thu, 14 Nov 2019 12:12:07 +0000 (12:12 +0000)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Thu, 14 Nov 2019 12:22:13 +0000 (12:22 +0000)
commit23fa16fc946b511fade5e4e0dd9811beff351d73
treea7171165f1e85ca7243d5c635a75ca378547249a
parent1b8c612c29b1f391558f508211a4425f129d767a
Fix FEATURE_${NAME}_IS_ENABLED macro for default features

Commit 9f601cf3bbfa6be3e2ab3468e77a7b79c80ff5cf changed feature checks
from using a hash lookup to a bitmap check, but the macro definition
for enabled-by-default had the wrong macro name for the mask check,
and had `\L` instead of `\U` for the bit macro.  Change them all to
use the already-uppercase `$NAME` variable.

We don't actually have any default-enabled features since array_base
was removed, but in converting TonyC's 'noindirect' feature into a
default-enabled 'indirect' feature, I got bitten by this.
regen/feature.pl