diff options
author | Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> | 2022-07-05 11:39:36 +0100 |
---|---|---|
committer | Paul Evans <leonerd@leonerd.org.uk> | 2022-07-05 13:57:12 +0100 |
commit | 792bf4bab089d68ffc6344f65e675d4117390c15 (patch) | |
tree | c57c2dd382b32bf141933caac333d36e35e66a14 /pad.c | |
parent | cc6fbaaa94dda35975cfd69338f19db9603392e2 (diff) | |
download | perl-792bf4bab089d68ffc6344f65e675d4117390c15.tar.gz |
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.
Diffstat (limited to 'pad.c')
-rw-r--r-- | pad.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2753,9 +2753,9 @@ Perl_newPADNAMEpvn(const char *s, STRLEN len) Constructs and returns a new pad name. Only use this function for names that refer to outer lexicals. (See also L</newPADNAMEpvn>.) C<outer> is the outer pad name that this one mirrors. The returned pad name has the -C<PADNAMEt_OUTER> flag already set. +C<PADNAMEf_OUTER> flag already set. -=for apidoc Amnh||PADNAMEt_OUTER +=for apidoc Amnh||PADNAMEf_OUTER =cut */ @@ -2771,7 +2771,7 @@ Perl_newPADNAMEouter(PADNAME *outer) /* Not PadnameREFCNT(outer), because ‘outer’ may itself close over another entry. The original pad name owns the buffer. */ PadnameREFCNT(PADNAME_FROM_PV(PadnamePV(outer)))++; - PadnameFLAGS(pn) = PADNAMEt_OUTER; + PadnameFLAGS(pn) = PADNAMEf_OUTER; PadnameLEN(pn) = PadnameLEN(outer); return pn; } |