This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Neaten the PADNAME flag constants
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>
Tue, 5 Jul 2022 10:39:36 +0000 (11:39 +0100)
committerPaul Evans <leonerd@leonerd.org.uk>
Tue, 5 Jul 2022 12:57:12 +0000 (13:57 +0100)
commit792bf4bab089d68ffc6344f65e675d4117390c15
treec57c2dd382b32bf141933caac333d36e35e66a14
parentcc6fbaaa94dda35975cfd69338f19db9603392e2
Neaten the PADNAME flag constants

Rename the `PADNAMEt_*` constants to `PADNAMEf_*`, as they're supposed
to represent bitflags, not a type enumeration.

Also updated the `B` and `B::Deparse` modules to make use of the new modern
names (and avoid the old `SVpad_*` flags).

Also added `PADNAMEt_*` back-compat defines, guarded by `#ifndef PERL_CORE`
so as not to permit their use accidentally within perl core.
ext/B/B.pm
ext/B/B.xs
ext/B/Makefile.PL
lib/B/Deparse.pm
op.c
pad.c
pad.h