From: Steffen Mueller Date: Wed, 2 Sep 2009 15:07:18 +0000 (+0200) Subject: Move Tie::File from lib to ext X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c6b4a156729e014eedc1d104dfb7b1a5d1a6e70e;p=p5sagit%2Fp5-mst-13.2.git Move Tie::File from lib to ext --- diff --git a/MANIFEST b/MANIFEST index a374ccb..b91b268 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1638,6 +1638,45 @@ ext/threads/t/stress_cv.t Test with multiple threads, coderef cv argument. ext/threads/t/stress_re.t Test with multiple threads, string cv argument and regexes. ext/threads/t/stress_string.t Test with multiple threads, string cv argument. ext/threads/t/thread.t General ithread tests from thr5005 +ext/Tie-File/lib/Tie/File.pm Files as tied arrays +ext/Tie-File/t/00_version.t Trivial test for Tie::File +ext/Tie-File/t/01_gen.t Generic read/write tests for Tie::File +ext/Tie-File/t/02_fetchsize.t File length fetch test for Tie::File +ext/Tie-File/t/03_longfetch.t Past-the-end-of-the-array tests for Tie::File +ext/Tie-File/t/04_splice.t SPLICE method tests for Tie::File +ext/Tie-File/t/05_size.t $#a tests for Tie::File +ext/Tie-File/t/06_fixrec.t '_fixrec' method functional tests for Tie::File +ext/Tie-File/t/07_rv_splice.t SPLICE method return value tests for Tie::File +ext/Tie-File/t/08_ro.t read-only mode tests for Tie::File +ext/Tie-File/t/09_gen_rs.t Like 01_gen.t, with unusual record separator +ext/Tie-File/t/10_splice_rs.t Like 04_splice.t, with unusual record separator +ext/Tie-File/t/11_rv_splice_rs.t Like 07_rv_splice.t, with unusual record separator +ext/Tie-File/t/12_longfetch_rs.t Like 03_longfetch.t, with unusual record separator +ext/Tie-File/t/13_size_rs.t Like 05_size.t, with unusual record separator +ext/Tie-File/t/14_lock.t File locking method tests for Tie::File +ext/Tie-File/t/15_pushpop.t PUSH / POP / SHIFT / UNSHIFT for Tie::File +ext/Tie-File/t/16_handle.t Tying a handle instead of a file for Tie::File +ext/Tie-File/t/17_misc_meth.t CLEAR / EXISTS / DELETE / EXTEND for Tie::File +ext/Tie-File/t/18_rs_fixrec.t Like 06_fixrec.t, with unusual record separator +ext/Tie-File/t/19_cache.t Read cache exercises and regression for Tie::File +ext/Tie-File/t/20_cache_full.t LRU expiry exercises and regression for Tie::File +ext/Tie-File/t/21_win32.t Win32 special behavior of Tie::File +ext/Tie-File/t/22_autochomp.t 'autochomp' option of Tie::File +ext/Tie-File/t/23_rv_ac_splice.t Like 07_rv_splice.t, but with autochomp +ext/Tie-File/t/24_cache_loop.t Regression for old Tie::File cache bug +ext/Tie-File/t/25_gen_nocache.t Like 01_gen.t, but with caching disabled +ext/Tie-File/t/26_twrite.t Unit tests for Tie::File::_twrite +ext/Tie-File/t/27_iwrite.t Unit tests for Tie::File::_iwrite +ext/Tie-File/t/28_mtwrite.t Unit tests for Tie::File::_mtwrite +ext/Tie-File/t/29a_upcopy.t Unit tests for Tie::File::_upcopy +ext/Tie-File/t/29_downcopy.t Unit tests for Tie::File::_downcopy +ext/Tie-File/t/30_defer.t deferred writing feature tests for Tie::File +ext/Tie-File/t/31_autodefer.t 'autodefer' feature tests for Tie::File +ext/Tie-File/t/32_defer_misc.t Like 17_misc_meth.t, but with deferred writing +ext/Tie-File/t/33_defer_vs.t Like 30_defer.t, but with varying-length records +ext/Tie-File/t/40_abs_cache.t Unit tests for Tie::File::Cache +ext/Tie-File/t/41_heap.t Unit tests for Tie::File::Heap +ext/Tie-File/t/42_offset.t Unit tests for the offset method ext/Time-HiRes/Changes Time::HiRes extension ext/Time-HiRes/fallback/const-c.inc Time::HiRes extension ext/Time-HiRes/fallback/const-xs.inc Time::HiRes extension @@ -3331,45 +3370,6 @@ lib/Tie/Array/push.t Test for Tie::Array lib/Tie/Array/splice.t Test for Tie::Array::SPLICE lib/Tie/Array/stdpush.t Test for Tie::StdArray lib/Tie/Array/std.t Test for Tie::StdArray -lib/Tie/File.pm Files as tied arrays -lib/Tie/File/t/00_version.t Trivial test for Tie::File -lib/Tie/File/t/01_gen.t Generic read/write tests for Tie::File -lib/Tie/File/t/02_fetchsize.t File length fetch test for Tie::File -lib/Tie/File/t/03_longfetch.t Past-the-end-of-the-array tests for Tie::File -lib/Tie/File/t/04_splice.t SPLICE method tests for Tie::File -lib/Tie/File/t/05_size.t $#a tests for Tie::File -lib/Tie/File/t/06_fixrec.t '_fixrec' method functional tests for Tie::File -lib/Tie/File/t/07_rv_splice.t SPLICE method return value tests for Tie::File -lib/Tie/File/t/08_ro.t read-only mode tests for Tie::File -lib/Tie/File/t/09_gen_rs.t Like 01_gen.t, with unusual record separator -lib/Tie/File/t/10_splice_rs.t Like 04_splice.t, with unusual record separator -lib/Tie/File/t/11_rv_splice_rs.t Like 07_rv_splice.t, with unusual record separator -lib/Tie/File/t/12_longfetch_rs.t Like 03_longfetch.t, with unusual record separator -lib/Tie/File/t/13_size_rs.t Like 05_size.t, with unusual record separator -lib/Tie/File/t/14_lock.t File locking method tests for Tie::File -lib/Tie/File/t/15_pushpop.t PUSH / POP / SHIFT / UNSHIFT for Tie::File -lib/Tie/File/t/16_handle.t Tying a handle instead of a file for Tie::File -lib/Tie/File/t/17_misc_meth.t CLEAR / EXISTS / DELETE / EXTEND for Tie::File -lib/Tie/File/t/18_rs_fixrec.t Like 06_fixrec.t, with unusual record separator -lib/Tie/File/t/19_cache.t Read cache exercises and regression for Tie::File -lib/Tie/File/t/20_cache_full.t LRU expiry exercises and regression for Tie::File -lib/Tie/File/t/21_win32.t Win32 special behavior of Tie::File -lib/Tie/File/t/22_autochomp.t 'autochomp' option of Tie::File -lib/Tie/File/t/23_rv_ac_splice.t Like 07_rv_splice.t, but with autochomp -lib/Tie/File/t/24_cache_loop.t Regression for old Tie::File cache bug -lib/Tie/File/t/25_gen_nocache.t Like 01_gen.t, but with caching disabled -lib/Tie/File/t/26_twrite.t Unit tests for Tie::File::_twrite -lib/Tie/File/t/27_iwrite.t Unit tests for Tie::File::_iwrite -lib/Tie/File/t/28_mtwrite.t Unit tests for Tie::File::_mtwrite -lib/Tie/File/t/29a_upcopy.t Unit tests for Tie::File::_upcopy -lib/Tie/File/t/29_downcopy.t Unit tests for Tie::File::_downcopy -lib/Tie/File/t/30_defer.t deferred writing feature tests for Tie::File -lib/Tie/File/t/31_autodefer.t 'autodefer' feature tests for Tie::File -lib/Tie/File/t/32_defer_misc.t Like 17_misc_meth.t, but with deferred writing -lib/Tie/File/t/33_defer_vs.t Like 30_defer.t, but with varying-length records -lib/Tie/File/t/40_abs_cache.t Unit tests for Tie::File::Cache -lib/Tie/File/t/41_heap.t Unit tests for Tie::File::Heap -lib/Tie/File/t/42_offset.t Unit tests for the offset method lib/Tie/Handle.pm Base class for tied handles lib/Tie/Handle/stdhandle_from_handle.t Test for Tie::StdHandle/Handle backwards compat lib/Tie/Handle/stdhandle.t Test for Tie::StdHandle diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl index 259db9d..d4b4b0e 100755 --- a/Porting/Maintainers.pl +++ b/Porting/Maintainers.pl @@ -1824,7 +1824,7 @@ package Maintainers; { 'MAINTAINER' => 'mjd', 'DISTRIBUTION' => 'MJD/Tie-File-0.96.tar.gz', - 'FILES' => q[lib/Tie/File.pm lib/Tie/File], + 'FILES' => q[ext/Tie-File], 'CPAN' => 1, 'UPSTREAM' => undef, }, diff --git a/ext/.gitignore b/ext/.gitignore index 903c514..aadc64f 100644 --- a/ext/.gitignore +++ b/ext/.gitignore @@ -44,6 +44,7 @@ ppport.h /Text-Soundex/Makefile.PL /Thread-Queue/Makefile.PL /Thread-Semaphore/Makefile.PL +/Tie-File/Makefile.PL # ignore all vim swap files but the one bundled in Module::Pluggable for testing *.swp diff --git a/lib/Tie/File.pm b/ext/Tie-File/lib/Tie/File.pm similarity index 100% rename from lib/Tie/File.pm rename to ext/Tie-File/lib/Tie/File.pm diff --git a/lib/Tie/File/t/00_version.t b/ext/Tie-File/t/00_version.t similarity index 100% rename from lib/Tie/File/t/00_version.t rename to ext/Tie-File/t/00_version.t diff --git a/lib/Tie/File/t/01_gen.t b/ext/Tie-File/t/01_gen.t similarity index 100% rename from lib/Tie/File/t/01_gen.t rename to ext/Tie-File/t/01_gen.t diff --git a/lib/Tie/File/t/02_fetchsize.t b/ext/Tie-File/t/02_fetchsize.t similarity index 100% rename from lib/Tie/File/t/02_fetchsize.t rename to ext/Tie-File/t/02_fetchsize.t diff --git a/lib/Tie/File/t/03_longfetch.t b/ext/Tie-File/t/03_longfetch.t similarity index 100% rename from lib/Tie/File/t/03_longfetch.t rename to ext/Tie-File/t/03_longfetch.t diff --git a/lib/Tie/File/t/04_splice.t b/ext/Tie-File/t/04_splice.t similarity index 100% rename from lib/Tie/File/t/04_splice.t rename to ext/Tie-File/t/04_splice.t diff --git a/lib/Tie/File/t/05_size.t b/ext/Tie-File/t/05_size.t similarity index 100% rename from lib/Tie/File/t/05_size.t rename to ext/Tie-File/t/05_size.t diff --git a/lib/Tie/File/t/06_fixrec.t b/ext/Tie-File/t/06_fixrec.t similarity index 100% rename from lib/Tie/File/t/06_fixrec.t rename to ext/Tie-File/t/06_fixrec.t diff --git a/lib/Tie/File/t/07_rv_splice.t b/ext/Tie-File/t/07_rv_splice.t similarity index 100% rename from lib/Tie/File/t/07_rv_splice.t rename to ext/Tie-File/t/07_rv_splice.t diff --git a/lib/Tie/File/t/08_ro.t b/ext/Tie-File/t/08_ro.t similarity index 100% rename from lib/Tie/File/t/08_ro.t rename to ext/Tie-File/t/08_ro.t diff --git a/lib/Tie/File/t/09_gen_rs.t b/ext/Tie-File/t/09_gen_rs.t similarity index 100% rename from lib/Tie/File/t/09_gen_rs.t rename to ext/Tie-File/t/09_gen_rs.t diff --git a/lib/Tie/File/t/10_splice_rs.t b/ext/Tie-File/t/10_splice_rs.t similarity index 100% rename from lib/Tie/File/t/10_splice_rs.t rename to ext/Tie-File/t/10_splice_rs.t diff --git a/lib/Tie/File/t/11_rv_splice_rs.t b/ext/Tie-File/t/11_rv_splice_rs.t similarity index 100% rename from lib/Tie/File/t/11_rv_splice_rs.t rename to ext/Tie-File/t/11_rv_splice_rs.t diff --git a/lib/Tie/File/t/12_longfetch_rs.t b/ext/Tie-File/t/12_longfetch_rs.t similarity index 100% rename from lib/Tie/File/t/12_longfetch_rs.t rename to ext/Tie-File/t/12_longfetch_rs.t diff --git a/lib/Tie/File/t/13_size_rs.t b/ext/Tie-File/t/13_size_rs.t similarity index 100% rename from lib/Tie/File/t/13_size_rs.t rename to ext/Tie-File/t/13_size_rs.t diff --git a/lib/Tie/File/t/14_lock.t b/ext/Tie-File/t/14_lock.t similarity index 100% rename from lib/Tie/File/t/14_lock.t rename to ext/Tie-File/t/14_lock.t diff --git a/lib/Tie/File/t/15_pushpop.t b/ext/Tie-File/t/15_pushpop.t similarity index 100% rename from lib/Tie/File/t/15_pushpop.t rename to ext/Tie-File/t/15_pushpop.t diff --git a/lib/Tie/File/t/16_handle.t b/ext/Tie-File/t/16_handle.t similarity index 100% rename from lib/Tie/File/t/16_handle.t rename to ext/Tie-File/t/16_handle.t diff --git a/lib/Tie/File/t/17_misc_meth.t b/ext/Tie-File/t/17_misc_meth.t similarity index 100% rename from lib/Tie/File/t/17_misc_meth.t rename to ext/Tie-File/t/17_misc_meth.t diff --git a/lib/Tie/File/t/18_rs_fixrec.t b/ext/Tie-File/t/18_rs_fixrec.t similarity index 100% rename from lib/Tie/File/t/18_rs_fixrec.t rename to ext/Tie-File/t/18_rs_fixrec.t diff --git a/lib/Tie/File/t/19_cache.t b/ext/Tie-File/t/19_cache.t similarity index 100% rename from lib/Tie/File/t/19_cache.t rename to ext/Tie-File/t/19_cache.t diff --git a/lib/Tie/File/t/20_cache_full.t b/ext/Tie-File/t/20_cache_full.t similarity index 100% rename from lib/Tie/File/t/20_cache_full.t rename to ext/Tie-File/t/20_cache_full.t diff --git a/lib/Tie/File/t/21_win32.t b/ext/Tie-File/t/21_win32.t similarity index 100% rename from lib/Tie/File/t/21_win32.t rename to ext/Tie-File/t/21_win32.t diff --git a/lib/Tie/File/t/22_autochomp.t b/ext/Tie-File/t/22_autochomp.t similarity index 100% rename from lib/Tie/File/t/22_autochomp.t rename to ext/Tie-File/t/22_autochomp.t diff --git a/lib/Tie/File/t/23_rv_ac_splice.t b/ext/Tie-File/t/23_rv_ac_splice.t similarity index 100% rename from lib/Tie/File/t/23_rv_ac_splice.t rename to ext/Tie-File/t/23_rv_ac_splice.t diff --git a/lib/Tie/File/t/24_cache_loop.t b/ext/Tie-File/t/24_cache_loop.t similarity index 100% rename from lib/Tie/File/t/24_cache_loop.t rename to ext/Tie-File/t/24_cache_loop.t diff --git a/lib/Tie/File/t/25_gen_nocache.t b/ext/Tie-File/t/25_gen_nocache.t similarity index 100% rename from lib/Tie/File/t/25_gen_nocache.t rename to ext/Tie-File/t/25_gen_nocache.t diff --git a/lib/Tie/File/t/26_twrite.t b/ext/Tie-File/t/26_twrite.t similarity index 100% rename from lib/Tie/File/t/26_twrite.t rename to ext/Tie-File/t/26_twrite.t diff --git a/lib/Tie/File/t/27_iwrite.t b/ext/Tie-File/t/27_iwrite.t similarity index 100% rename from lib/Tie/File/t/27_iwrite.t rename to ext/Tie-File/t/27_iwrite.t diff --git a/lib/Tie/File/t/28_mtwrite.t b/ext/Tie-File/t/28_mtwrite.t similarity index 100% rename from lib/Tie/File/t/28_mtwrite.t rename to ext/Tie-File/t/28_mtwrite.t diff --git a/lib/Tie/File/t/29_downcopy.t b/ext/Tie-File/t/29_downcopy.t similarity index 100% rename from lib/Tie/File/t/29_downcopy.t rename to ext/Tie-File/t/29_downcopy.t diff --git a/lib/Tie/File/t/29a_upcopy.t b/ext/Tie-File/t/29a_upcopy.t similarity index 100% rename from lib/Tie/File/t/29a_upcopy.t rename to ext/Tie-File/t/29a_upcopy.t diff --git a/lib/Tie/File/t/30_defer.t b/ext/Tie-File/t/30_defer.t similarity index 100% rename from lib/Tie/File/t/30_defer.t rename to ext/Tie-File/t/30_defer.t diff --git a/lib/Tie/File/t/31_autodefer.t b/ext/Tie-File/t/31_autodefer.t similarity index 100% rename from lib/Tie/File/t/31_autodefer.t rename to ext/Tie-File/t/31_autodefer.t diff --git a/lib/Tie/File/t/32_defer_misc.t b/ext/Tie-File/t/32_defer_misc.t similarity index 100% rename from lib/Tie/File/t/32_defer_misc.t rename to ext/Tie-File/t/32_defer_misc.t diff --git a/lib/Tie/File/t/33_defer_vs.t b/ext/Tie-File/t/33_defer_vs.t similarity index 100% rename from lib/Tie/File/t/33_defer_vs.t rename to ext/Tie-File/t/33_defer_vs.t diff --git a/lib/Tie/File/t/40_abs_cache.t b/ext/Tie-File/t/40_abs_cache.t similarity index 100% rename from lib/Tie/File/t/40_abs_cache.t rename to ext/Tie-File/t/40_abs_cache.t diff --git a/lib/Tie/File/t/41_heap.t b/ext/Tie-File/t/41_heap.t similarity index 100% rename from lib/Tie/File/t/41_heap.t rename to ext/Tie-File/t/41_heap.t diff --git a/lib/Tie/File/t/42_offset.t b/ext/Tie-File/t/42_offset.t similarity index 91% rename from lib/Tie/File/t/42_offset.t rename to ext/Tie-File/t/42_offset.t index 1762443..8c62832 100644 --- a/lib/Tie/File/t/42_offset.t +++ b/ext/Tie-File/t/42_offset.t @@ -12,11 +12,6 @@ my $file = "tf$$.txt"; BEGIN { $| = 1; - if ($ENV{PERL_CORE}) - { - # testing with the core distribution - @INC = ( File::Spec->catdir(File::Spec->updir, 't', 'lib') ); - } unshift @INC, File::Spec->catdir(File::Spec->updir, 'lib'); chdir 't' if -d 't'; print "# INC = @INC\n"; diff --git a/lib/.gitignore b/lib/.gitignore index 35576bd..f00e6ae 100644 --- a/lib/.gitignore +++ b/lib/.gitignore @@ -84,6 +84,7 @@ /Text/Balanced.pm /Text/Soundex.pm /Thread +/Tie/File.pm /Time/HiRes.pm /Time/Piece.pm /Time/Seconds.pm