summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorBen Morrow <ben@morrow.me.uk>2009-12-07 12:55:57 +0000
committerRafael Garcia-Suarez <rgs@consttype.org>2010-07-12 10:40:47 +0200
commitbb6c22e795117e6d984471c0be74c8b3302b3b9a (patch)
treee4fd879b498c3df488403078ee2a97e48ec7ca5e /op.c
parent52db365a88f7ab3b9b091f983a05054164499982 (diff)
downloadperl-bb6c22e795117e6d984471c0be74c8b3302b3b9a.tar.gz
Wrap PL_blockhooks in an API function.
This should help prevent people from thinking they can get cute with the contents.
Diffstat (limited to 'op.c')
-rw-r--r--op.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/op.c b/op.c
index dc18a2dac2..9caf8cdc5c 100644
--- a/op.c
+++ b/op.c
@@ -2343,6 +2343,14 @@ Perl_block_end(pTHX_ I32 floor, OP *seq)
return retval;
}
+void
+Perl_blockhook_register(pTHX_ BHK *hk)
+{
+ PERL_ARGS_ASSERT_BLOCKHOOK_REGISTER;
+
+ Perl_av_create_and_push(aTHX_ &PL_blockhooks, newSViv(PTR2IV(hk)));
+}
+
STATIC OP *
S_newDEFSVOP(pTHX)
{