This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
locale.c: Refactor Ultrix code
authorKarl Williamson <khw@cpan.org>
Tue, 2 Jan 2018 03:00:03 +0000 (20:00 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 31 Jan 2018 05:27:25 +0000 (22:27 -0700)
commitb56c4436828bcd87238fef789556f660fe388983
treec99a8942ca6d7ff17797111380835a9fb37477fd
parent2213a3be072ef275c38e8b4b22fbe9bb80fe0350
locale.c: Refactor Ultrix code

Examination shows that this code does nothing unless LC_ALL is defined.
So explicitly test at compile time for that.

Also, two variables don't have to be declared so globally, and by
reducing their scope, by creating a new block we don't have to have
PERL_UNUSED_ARG()s for them
locale.c