This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
locale.c: Add #define's
authorKarl Williamson <khw@cpan.org>
Mon, 11 Sep 2017 17:05:56 +0000 (11:05 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 9 Nov 2017 22:14:45 +0000 (15:14 -0700)
commit948523db14a656d84e10e1d47538fd77a4872cdc
treecff1df74e2f76917d64b6bb1ac4e6477a7b4a294
parente5f10d4955ff54b3fe492cd78c412eb54b0ae45a
locale.c: Add #define's

The previous commit added arrays of locale categories.  This commit
creates compile-time mappings from the category number to the index it
has in the array.  It also changes to use the #define for the index of
LC_ALL in places it is expected to be defined.  This causes bugs in this
logic to be found at compile time on systems that don't have LC_ALL.
locale.c