[Bast-commits] r4949 - Devel-Declare/1.000/branches/hook_op_check
rafl at dev.catalyst.perl.org
rafl at dev.catalyst.perl.org
Wed Oct 22 19:27:58 BST 2008
Author: rafl
Date: 2008-10-22 19:27:57 +0100 (Wed, 22 Oct 2008)
New Revision: 4949
Modified:
Devel-Declare/1.000/branches/hook_op_check/Declare.xs
Devel-Declare/1.000/branches/hook_op_check/Makefile.PL
Log:
Update for latest B::Hooks::OP::Check API.
Modified: Devel-Declare/1.000/branches/hook_op_check/Declare.xs
===================================================================
--- Devel-Declare/1.000/branches/hook_op_check/Declare.xs 2008-10-20 11:35:00 UTC (rev 4948)
+++ Devel-Declare/1.000/branches/hook_op_check/Declare.xs 2008-10-22 18:27:57 UTC (rev 4949)
@@ -193,7 +193,7 @@
/* replacement PL_check rv2cv entry */
-STATIC OP *dd_ck_rv2cv(pTHX_ OP *o) {
+STATIC OP *dd_ck_rv2cv(pTHX_ OP *o, void *user_data) {
OP* kid;
int dd_flags;
char* cb_args[6];
@@ -272,7 +272,7 @@
return PL_ppaddr[OP_ENTEREVAL](aTHX);
}
-STATIC OP *dd_ck_entereval(pTHX_ OP *o) {
+STATIC OP *dd_ck_entereval(pTHX_ OP *o, void *user_data) {
if (o->op_ppaddr == PL_ppaddr[OP_ENTEREVAL])
o->op_ppaddr = dd_pp_entereval;
return o;
@@ -286,7 +286,7 @@
return count;
}
-STATIC OP *dd_ck_const(pTHX_ OP *o) {
+STATIC OP *dd_ck_const(pTHX_ OP *o, void *user_data) {
int dd_flags;
char* s;
char* name;
@@ -323,9 +323,9 @@
setup()
CODE:
if (!initialized++) {
- hook_op_check(OP_RV2CV, dd_ck_rv2cv);
- hook_op_check(OP_ENTEREVAL, dd_ck_entereval);
- hook_op_check(OP_CONST, dd_ck_const);
+ hook_op_check(OP_RV2CV, dd_ck_rv2cv, NULL);
+ hook_op_check(OP_ENTEREVAL, dd_ck_entereval, NULL);
+ hook_op_check(OP_CONST, dd_ck_const, NULL);
}
filter_add(dd_filter_realloc, NULL);
Modified: Devel-Declare/1.000/branches/hook_op_check/Makefile.PL
===================================================================
--- Devel-Declare/1.000/branches/hook_op_check/Makefile.PL 2008-10-20 11:35:00 UTC (rev 4948)
+++ Devel-Declare/1.000/branches/hook_op_check/Makefile.PL 2008-10-22 18:27:57 UTC (rev 4949)
@@ -8,11 +8,12 @@
all_from 'lib/Devel/Declare.pm';
requires 'Scalar::Util';
-requires 'B::Hooks::OP::Check';
+requires 'B::Hooks::OP::Check' => '0.10';
build_requires 'Test::More';
build_requires 'Scope::Guard';
+build_requires 'B::Hooks::OP::Check' => '0.10';
configure_requires 'ExtUtils::Depends';
-configure_requires 'B::Hooks::OP::Check';
+configure_requires 'B::Hooks::OP::Check' => '0.10';
postamble(<<'EOM');
$(OBJECT) : stolen_chunk_of_toke.c
More information about the Bast-commits
mailing list