[perl #117947] Verify lvalueness of XSUBs at run time
authorFather Chrysostomos <sprout@cpan.org>
Tue, 28 May 2013 00:45:50 +0000 (17:45 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 28 May 2013 00:46:08 +0000 (17:46 -0700)
commit4587c5322c964beac01a38188957ca11026dc766
tree8b4a16d53c35dd055d52433514ba82f9e52ec951
parent717a97bab95e1c5b372d6ecc681398092afcffd6
[perl #117947] Verify lvalueness of XSUBs at run time

If the sub is not visible at compile time, the op tree is flagged such
that pp_entersub will know whether to check the lvalueness of the
called sub.

That check has been in pp_entersub since da1dff9483c.  When I moved
it to pp_entersub in that commit, I only added it to the pure-Perl
branch, not to the XS branch, allowing all XSUBs to be treated as
lvalues if they are not visible at compile time.
cop.h
pp_hot.c
t/op/sub_lval.t