summaryrefslogtreecommitdiff
path: root/malloc_ctl.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-08-11 21:54:11 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-08-13 13:42:40 -0700
commit34b94bc4d14e09f43028265cf501a750754f844c (patch)
treecf3e5c253effa3365e2d28e7156946f6ad3a42c8 /malloc_ctl.h
parentec2a15bbde2590124a10c9ae5b07794eeabcdcbe (diff)
downloadperl-34b94bc4d14e09f43028265cf501a750754f844c.tar.gz
Inline Devel::Peek::Dump; allow Dump %hash etc.
This commit makes Devel::Peek::Dump modify the op tree to allow it to dump arrays and hashes directly via Dump @array and Dump %hash. It also puts other operators in rvalue context, allowing the return value of rvalue substr for instance to be dumped, making Devel::Peek more useful as a debugging tool. Since a future commit (to fix the rest of #78194) is likely to make pp_entersub copy PADTMPs (operator return values) for XSUBs (it already happens for Perl subs as of b479c9f2a), to the detriment of Devel::Peek’s usefulness, I also made it inline Dump as a custom op. This does introduce a backward-incompatible change, in that both argu- ments to Dump are now in scalar context, and the number of arguments is checked at compile time instead of run time (still run time for &Dump(...)), but I think it is worth it.
Diffstat (limited to 'malloc_ctl.h')
0 files changed, 0 insertions, 0 deletions