Rename _setup and _teardown to {setup,teardown}_for_cv.
Florian Ragwitz [Sat, 25 Oct 2008 10:33:05 +0000 (10:33 +0000)]
BeginLift.xs
lib/Devel/BeginLift.pm

index 0030357..cf92144 100644 (file)
@@ -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);
index 98d5fd0..67ff298 100644 (file)
@@ -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};
 }