This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
feature.h - simplify expression CURRENT_HINTS expression
authorYves Orton <demerphq@gmail.com>
Tue, 25 Oct 2022 10:05:16 +0000 (12:05 +0200)
committerYves Orton <demerphq@gmail.com>
Wed, 26 Oct 2022 09:11:08 +0000 (11:11 +0200)
commit7b038bdfcf431a73f1f1fa9c4494322ed4fc8ae2
tree1a6a646059a9e412a914eecf2846c0bd3afa5315
parenta73e2f42e4d90aabd3c1f9b45b5b18fab652e36e
feature.h - simplify expression CURRENT_HINTS expression

PL_hints expands to PL_compiling.cop_hints. So there is no
point in doing

    PL_curcop == &PL_compiling ? PL_hints : PL_curcop->cop_hints

as it resolves to doing:

    PL_curcop->cop_hints

but with a comparison, which likely kills any speed advantage
the direct access might provide.

The old define is left around to validate that the two are the same
if needed.
feature.h
regen/feature.pl