summaryrefslogtreecommitdiff
path: root/pad.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-09-10 16:07:30 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-09-15 22:45:09 -0700
commitd2c8bf052f5a8bb99050f6d2418d77151eb4b468 (patch)
treef0349e7fbd6b24359e94fabd44efc0f57dd090a0 /pad.h
parentc388b2138d3ec12be3c986d57c518d41d042e7a1 (diff)
downloadperl-d2c8bf052f5a8bb99050f6d2418d77151eb4b468.tar.gz
Set PL_comppad_name on sub entry
Diffstat (limited to 'pad.h')
-rw-r--r--pad.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pad.h b/pad.h
index f65af17a78..a0b5573247 100644
--- a/pad.h
+++ b/pad.h
@@ -172,7 +172,7 @@ XXX DAPM it would make more sense to make the arg a PADOFFSET
Clear the pointed to pad value on scope exit. (i.e. the runtime action of 'my')
=for apidoc m|void|SAVECOMPPAD
-save PL_comppad and PL_curpad
+Save PL_comppad_name, PL_comppad and PL_curpad.
=for apidoc Amx|PAD **|PadlistARRAY|PADLIST padlist
@@ -318,6 +318,7 @@ Restore the old pad saved into the local variable opad by PAD_SAVE_LOCAL()
#define PAD_SET_CUR_NOSAVE(padlist,nth) \
+ PL_comppad_name = PadlistNAMES(padlist); \
PL_comppad = (PAD*) (PadlistARRAY(padlist)[nth]); \
PL_curpad = AvARRAY(PL_comppad); \
DEBUG_Xv(PerlIO_printf(Perl_debug_log, \