This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
locale.c: Change to use enum instead of int
authorKarl Williamson <khw@cpan.org>
Thu, 20 Apr 2023 23:20:52 +0000 (17:20 -0600)
committerKarl Williamson <khw@cpan.org>
Mon, 18 Sep 2023 02:32:22 +0000 (20:32 -0600)
commitb71e0339d45ecd5b9ba34ed077bfe2a778e173b2
tree7d7697bc5ec58641a2f6753978a3edc52cb487a4
parent4c5edaea3c3c35944ba9d459d1e7ecf01e5dd62f
locale.c: Change to use enum instead of int

Knowing that the domain is just a few values can lead the compiler to
generate better code, and to catch programmer errors.

This also creates #defines for the interior of a C 'for' loop header,
which I think are more readable.
embed.fnc
locale.c
proto.h