[Bast-commits] r4981 - in
Devel-BeginLift/1.000/branches/entersub_for_cv: . lib/Devel
rafl at dev.catalyst.perl.org
rafl at dev.catalyst.perl.org
Sat Oct 25 11:51:35 BST 2008
Author: rafl
Date: 2008-10-25 11:51:35 +0100 (Sat, 25 Oct 2008)
New Revision: 4981
Modified:
Devel-BeginLift/1.000/branches/entersub_for_cv/BeginLift.xs
Devel-BeginLift/1.000/branches/entersub_for_cv/lib/Devel/BeginLift.pm
Log:
Turn *_for_cv into classmethods.
Modified: Devel-BeginLift/1.000/branches/entersub_for_cv/BeginLift.xs
===================================================================
--- Devel-BeginLift/1.000/branches/entersub_for_cv/BeginLift.xs 2008-10-25 10:38:58 UTC (rev 4980)
+++ Devel-BeginLift/1.000/branches/entersub_for_cv/BeginLift.xs 2008-10-25 10:51:35 UTC (rev 4981)
@@ -103,13 +103,13 @@
PROTOTYPES: DISABLE
UV
-setup_for_cv (CV *cv)
+setup_for_cv (class, CV *cv)
CODE:
RETVAL = (UV)hook_op_check_entersubforcv (cv, lift_cb, NULL);
OUTPUT:
RETVAL
void
-teardown_for_cv (UV id)
+teardown_for_cv (class, UV id)
CODE:
hook_op_check_entersubforcv_remove ((hook_op_check_id)id);
Modified: Devel-BeginLift/1.000/branches/entersub_for_cv/lib/Devel/BeginLift.pm
===================================================================
--- Devel-BeginLift/1.000/branches/entersub_for_cv/lib/Devel/BeginLift.pm 2008-10-25 10:38:58 UTC (rev 4980)
+++ Devel-BeginLift/1.000/branches/entersub_for_cv/lib/Devel/BeginLift.pm 2008-10-25 10:51:35 UTC (rev 4981)
@@ -28,7 +28,7 @@
my ($class, $target, $args) = @_;
$lift{$target} ||= [];
push @{ $lift{$target} }, map {
- setup_for_cv($_);
+ $class->setup_for_cv($_);
} map {
ref $_ eq 'CODE'
? $_
@@ -38,7 +38,7 @@
sub teardown_for {
my ($class, $target) = @_;
- teardown_for_cv($_) for @{ $lift{$target} };
+ $class->teardown_for_cv($_) for @{ $lift{$target} };
delete $lift{$target};
}
More information about the Bast-commits
mailing list