summaryrefslogtreecommitdiff
path: root/pad.c
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2022-07-05 11:39:36 +0100
committerPaul Evans <leonerd@leonerd.org.uk>2022-07-05 13:57:12 +0100
commit792bf4bab089d68ffc6344f65e675d4117390c15 (patch)
treec57c2dd382b32bf141933caac333d36e35e66a14 /pad.c
parentcc6fbaaa94dda35975cfd69338f19db9603392e2 (diff)
downloadperl-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pad.c b/pad.c
index da107fe847..bc967ec1f2 100644
--- a/pad.c
+++ b/pad.c
@@ -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;
}