summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-01-30 23:53:56 +0000
committerNicholas Clark <nick@ccl4.org>2007-01-30 23:53:56 +0000
commit33fb7a6edc5251e55242be2c5935f334082dd9b7 (patch)
tree923d77a74387c0b9365f679394913b111c893b5b /proto.h
parente670910b0c400b157be823734ec6e961eafe0d4a (diff)
downloadperl-33fb7a6edc5251e55242be2c5935f334082dd9b7.tar.gz
Refactor the code used to check/execute BEGIN/UNITCHECK/CHECK/INIT/END
duplicated in newATTRSUB and newXS into a new static function process_special_blocks() p4raw-id: //depot/perl@30080
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index 0272b80021..5eed24fdb2 100644
--- a/proto.h
+++ b/proto.h
@@ -3293,6 +3293,11 @@ STATIC OP* S_newGIVWHENOP(pTHX_ OP* cond, OP *block, I32 enter_opcode, I32 leave
__attribute__nonnull__(pTHX_2);
STATIC OP* S_ref_array_or_hash(pTHX_ OP* cond);
+STATIC void S_process_special_blocks(pTHX_ const char *const fullname, GV *const gv, CV *const cv)
+ __attribute__nonnull__(pTHX_1)
+ __attribute__nonnull__(pTHX_2)
+ __attribute__nonnull__(pTHX_3);
+
#endif
#if defined(PL_OP_SLAB_ALLOC)
PERL_CALLCONV void* Perl_Slab_Alloc(pTHX_ int m, size_t sz)