This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Skip trailing constants when searching pads
[perl5.git]
/
pad.h
diff --git
a/pad.h
b/pad.h
index
f6f3455
..
2558b7e
100644
(file)
--- a/
pad.h
+++ b/
pad.h
@@
-285,6
+285,8
@@
Restore the old pad saved into the local variable opad by PAD_SAVE_LOCAL()
#define PadnamelistARRAY(pnl) AvARRAY(pnl)
#define PadnamelistMAX(pnl) AvFILLp(pnl)
+#define PadnamelistMAXNAMED(pnl) \
+ ((XPVAV*) SvANY(pnl))->xmg_u.xmg_hash_index
#define PadARRAY(pad) AvARRAY(pad)
#define PadMAX(pad) AvFILLp(pad)