This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Generic hooks into Perl_block_{start,end}.
authorBen Morrow <ben@morrow.me.uk>
Thu, 26 Nov 2009 17:18:29 +0000 (17:18 +0000)
committerRafael Garcia-Suarez <rgs@consttype.org>
Mon, 12 Jul 2010 08:40:47 +0000 (10:40 +0200)
commit1930840b26541ab67ff111a47ceab4753d798617
treef27bbe5e370d51ad4f243eea906dc3b546f05efc
parent3e2d3818e517e0037c1ab6a482f31d50271f9e27
Generic hooks into Perl_block_{start,end}.

These take the form of a vtable pushed onto the new PL_blockhooks array.
This could probably do with a API around it later. Separate pre_end and
post_end hooks are needed to capture globals before the stack is unwound
(like needblockscope in the existing code). The intention is that once
a vtable is installed it never gets removed, so where necessary
extensions using this will need to use a hinthv element to determine
whether to do anything or not.
embedvar.h
intrpvar.h
op.c
op.h
perlapi.h
sv.c