This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Move context propagation and finalize_optree from do_eval to newPROG
authorGerard Goossen <gerard@ggoossen.net>
Thu, 11 Aug 2011 07:34:32 +0000 (09:34 +0200)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 11 Aug 2011 16:07:14 +0000 (09:07 -0700)
commit86a64801a038eae8c8c1c6f0ba6a8b40aeb8fa8d
tree102d71a80cd858fbfe116c3f3042030c3af587a0
parente64345f82d66a32f6da47acf482e7e6c9282b433
Move context propagation and finalize_optree from do_eval to newPROG

Aborting after errors found by finalize_optree in do_eval wasn't done
properly and would cause memory problems.
This patch moves the context propagation and finalize_optree to
newPROG such that the normal error handling is done.
The eval context blk_gimme is used to communicate the context.
op.c
pp_ctl.c