From: Peter Rabbitson Date: Sun, 1 Apr 2012 07:52:21 +0000 (+0200) Subject: De-tabardize X-Git-Tag: Devel-GlobalDestruction-0.05~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f832e2407333be0791e31fd01b37cc014dc0e4ee;p=p5sagit%2FDevel-GlobalDestruction.git De-tabardize --- diff --git a/GlobalDestruction.xs b/GlobalDestruction.xs index 900edf3..520c93e 100644 --- a/GlobalDestruction.xs +++ b/GlobalDestruction.xs @@ -10,8 +10,8 @@ PROTOTYPES: ENABLE I32 in_global_destruction() - PROTOTYPE: - CODE: - RETVAL = PL_dirty; - OUTPUT: - RETVAL + PROTOTYPE: + CODE: + RETVAL = PL_dirty; + OUTPUT: + RETVAL diff --git a/lib/Devel/GlobalDestruction.pm b/lib/Devel/GlobalDestruction.pm index 8cf559c..cbfd5aa 100644 --- a/lib/Devel/GlobalDestruction.pm +++ b/lib/Devel/GlobalDestruction.pm @@ -10,8 +10,8 @@ use XSLoader; our $VERSION = '0.04'; use Sub::Exporter -setup => { - exports => [ qw(in_global_destruction) ], - groups => { default => [ -all ] }, + exports => [ qw(in_global_destruction) ], + groups => { default => [ -all ] }, }; if (defined ${^GLOBAL_PHASE}) { @@ -34,16 +34,16 @@ destruction. =head1 SYNOPSIS - package Foo; - use Devel::GlobalDestruction; + package Foo; + use Devel::GlobalDestruction; - use namespace::clean; # to avoid having an "in_global_destruction" method + use namespace::clean; # to avoid having an "in_global_destruction" method - sub DESTROY { - return if in_global_destruction; + sub DESTROY { + return if in_global_destruction; - do_something_a_little_tricky(); - } + do_something_a_little_tricky(); + } =head1 DESCRIPTION @@ -87,9 +87,9 @@ Jesse Luehrs Edoy@tozt.netE =head1 COPYRIGHT - Copyright (c) 2008 Yuval Kogman. All rights reserved - This program is free software; you can redistribute - it and/or modify it under the same terms as Perl itself. + Copyright (c) 2008 Yuval Kogman. All rights reserved + This program is free software; you can redistribute + it and/or modify it under the same terms as Perl itself. =cut diff --git a/t/basic.t b/t/basic.t index 111dff1..84db72a 100644 --- a/t/basic.t +++ b/t/basic.t @@ -16,10 +16,10 @@ BEGIN { print "1..4\n"; sub ok ($$) { - print "not " if !$_[0]; - print "ok"; - print " - $_[1]" if defined $_[1]; - print "\n"; + print "not " if !$_[0]; + print "ok"; + print " - $_[1]" if defined $_[1]; + print "\n"; } ok( eval "use Devel::GlobalDestruction; 1", "use Devel::GlobalDestruction" );