From: Florian Ragwitz Date: Sat, 25 Oct 2008 10:33:05 +0000 (+0000) Subject: Rename _setup and _teardown to {setup,teardown}_for_cv. X-Git-Tag: 0.001001~1^2~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b18c28d9536a2fe1a15d372ba4f3362403d1eb4b;p=p5sagit%2FDevel-BeginLift.git Rename _setup and _teardown to {setup,teardown}_for_cv. --- diff --git a/BeginLift.xs b/BeginLift.xs index 0030357..cf92144 100644 --- a/BeginLift.xs +++ b/BeginLift.xs @@ -103,13 +103,13 @@ MODULE = Devel::BeginLift PACKAGE = Devel::BeginLift PROTOTYPES: DISABLE UV -_setup (CV *cv) +setup_for_cv (CV *cv) CODE: RETVAL = (UV)hook_op_check_entersubforcv (cv, lift_cb, NULL); OUTPUT: RETVAL void -_teardown (UV id) +teardown_for_cv (UV id) CODE: hook_op_check_entersubforcv_remove ((hook_op_check_id)id); diff --git a/lib/Devel/BeginLift.pm b/lib/Devel/BeginLift.pm index 98d5fd0..67ff298 100644 --- a/lib/Devel/BeginLift.pm +++ b/lib/Devel/BeginLift.pm @@ -28,7 +28,7 @@ sub setup_for { my ($class, $target, $args) = @_; $lift{$target} ||= []; push @{ $lift{$target} }, map { - _setup($_); + setup_for_cv($_); } map { ref $_ eq 'CODE' ? $_ @@ -38,7 +38,7 @@ sub setup_for { sub teardown_for { my ($class, $target) = @_; - _teardown($_) for @{ $lift{$target} }; + teardown_for_cv($_) for @{ $lift{$target} }; delete $lift{$target}; }