This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl.h: Use an enum to simplify consecutive value initialization
authorKarl Williamson <khw@cpan.org>
Wed, 12 Apr 2023 12:09:00 +0000 (06:09 -0600)
committerKarl Williamson <khw@cpan.org>
Mon, 3 Jul 2023 18:01:12 +0000 (12:01 -0600)
commitc164c467952dd4fb7b81b3030f8ccc445ae438a8
tree27302451de5a8543f40007181e99ed549371dc67
parentac95fc10948d6e7a38433eaa4a0824b8e9b1f1e5
perl.h: Use an enum to simplify consecutive value initialization

This commit replaces the clumsy method to initialize some symbols with
consecutive vaues.  This also presents opportunities to declare
variables as the particular enum type, to allow for better checking and
code generation.
perl.h