From: Chris Williams Date: Thu, 10 Sep 2009 20:30:20 +0000 (+0100) Subject: Moved bignum from lib/ to ext/ X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a3bef8ed8dece3b48e9e11993f255fbe719a0647;p=p5sagit%2Fp5-mst-13.2.git Moved bignum from lib/ to ext/ --- diff --git a/MANIFEST b/MANIFEST index 8f2a34b..b96fe4d 100644 --- a/MANIFEST +++ b/MANIFEST @@ -223,6 +223,32 @@ ext/B-Deparse/Deparse.pm Compiler Deparse backend ext/B-Deparse/t/deparse.t See if B::Deparse works ext/B/hints/darwin.pl Hints for named architecture ext/B/hints/openbsd.pl Hints for named architecture +ext/bignum/lib/bigint.pm bigint +ext/bignum/lib/bignum.pm bignum +ext/bignum/lib/bigrat.pm bigrat +ext/bignum/lib/Math/BigFloat/Trace.pm bignum tracing +ext/bignum/lib/Math/BigInt/Trace.pm bignum tracing +ext/bignum/t/big_e_pi.t See if bignum exports e() and PI() +ext/bignum/t/bigexp.t See if bignum works +ext/bignum/t/bigint.t See if bigint works +ext/bignum/t/bignum.t See if bignum works +ext/bignum/t/bigrat.t See if bigrat works +ext/bignum/t/bii_e_pi.t See if bigint exports e() and PI() +ext/bignum/t/biinfnan.t See if bignum works +ext/bignum/t/bir_e_pi.t See if bigrat exports e() and PI() +ext/bignum/t/bninfnan.t See if bignum works +ext/bignum/t/bn_lite.t See if bignum with Math::BigInt::Lite works +ext/bignum/t/brinfnan.t See if bignum works +ext/bignum/t/br_lite.t See if bigrat with Math::BigInt::Lite works +ext/bignum/t/in_effect.t See if in_effect() works +ext/bignum/t/infnan.inc See if bignum with inf/NaN works +ext/bignum/t/option_a.t See if bignum a => X works +ext/bignum/t/option_l.t See if bignum l => X works +ext/bignum/t/option_p.t See if bignum p => X works +ext/bignum/t/ratopt_a.t See if bigrat a => X works +ext/bignum/t/scope_f.t See if no bignum works +ext/bignum/t/scope_i.t See if no bigint works +ext/bignum/t/scope_r.t See if no bigrat works ext/B-Lint/lib/B/Lint/Debug.pm Adds debugging stringification to B:: ext/B-Lint/lib/B/Lint.pm Compiler Lint backend ext/B-Lint/t/lint.t See if B::Lint works @@ -2601,31 +2627,7 @@ lib/bigfloat.pl An arbitrary precision floating point package lib/bigfloatpl.t See if bigfloat.pl works lib/bigint.pl An arbitrary precision integer arithmetic package lib/bigintpl.t See if bigint.pl works -lib/bigint.pm bigint -lib/bignum.pm bignum -lib/bignum/t/big_e_pi.t See if bignum exports e() and PI() -lib/bignum/t/bigexp.t See if bignum works -lib/bignum/t/bigint.t See if bigint works -lib/bignum/t/bignum.t See if bignum works -lib/bignum/t/bigrat.t See if bigrat works -lib/bignum/t/bii_e_pi.t See if bigint exports e() and PI() -lib/bignum/t/biinfnan.t See if bignum works -lib/bignum/t/bir_e_pi.t See if bigrat exports e() and PI() -lib/bignum/t/bninfnan.t See if bignum works -lib/bignum/t/bn_lite.t See if bignum with Math::BigInt::Lite works -lib/bignum/t/brinfnan.t See if bignum works -lib/bignum/t/br_lite.t See if bigrat with Math::BigInt::Lite works -lib/bignum/t/in_effect.t See if in_effect() works -lib/bignum/t/infnan.inc See if bignum with inf/NaN works -lib/bignum/t/option_a.t See if bignum a => X works -lib/bignum/t/option_l.t See if bignum l => X works -lib/bignum/t/option_p.t See if bignum p => X works -lib/bignum/t/ratopt_a.t See if bigrat a => X works -lib/bignum/t/scope_f.t See if no bignum works -lib/bignum/t/scope_i.t See if no bigint works -lib/bignum/t/scope_r.t See if no bigrat works lib/bigrat.pl An arbitrary precision rational arithmetic package -lib/bigrat.pm bigrat lib/blib.pm For "use blib" lib/blib.t blib.pm test lib/bytes_heavy.pl Support routines for byte pragma @@ -2819,7 +2821,6 @@ lib/Locale/Script.pod Locale::Codes documentation lib/locale.t See if locale support works lib/look.pl A "look" equivalent lib/Math/BigFloat.pm An arbitrary precision floating-point arithmetic package -lib/Math/BigFloat/Trace.pm bignum tracing lib/Math/BigInt/CalcEmu.pm Pure Perl module to support Math::BigInt lib/Math/BigInt/Calc.pm Pure Perl module to support Math::BigInt lib/Math/BigInt.pm An arbitrary precision integer arithmetic package @@ -2852,7 +2853,6 @@ lib/Math/BigInt/t/mbimbf.t BigInt/BigFloat accuracy, precision and fallback, rou lib/Math/BigInt/t/mbi_rand.t Test Math::BigInt randomly lib/Math/BigInt/t/nan_cmp.t overloaded comparision involving *NaN* lib/Math/BigInt/t/new_ovld.t test overloaded numbers in BigFloat's new() -lib/Math/BigInt/Trace.pm bignum tracing lib/Math/BigInt/t/req_mbf0.t test: require Math::BigFloat; ->bzero(); lib/Math/BigInt/t/req_mbf1.t test: require Math::BigFloat; ->bone(); lib/Math/BigInt/t/req_mbfa.t test: require Math::BigFloat; ->bnan(); diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl index 0da12f1..d5ec8a1 100755 --- a/Porting/Maintainers.pl +++ b/Porting/Maintainers.pl @@ -291,11 +291,7 @@ use File::Glob qw(:case); { 'MAINTAINER' => 'tels', 'DISTRIBUTION' => 'TELS/math/bignum-0.23.tar.gz', - 'FILES' => q[lib/big{int,num,rat}.pm - lib/bignum - lib/Math/BigInt/Trace.pm - lib/Math/BigFloat/Trace.pm - ], + 'FILES' => q[ext/bignum], 'EXCLUDED' => [ qr{^inc/Module/}, qw(t/pod.t t/pod_cov.t) ], 'CPAN' => 1, 'UPSTREAM' => undef, diff --git a/ext/.gitignore b/ext/.gitignore index 4e99370..47543e1 100644 --- a/ext/.gitignore +++ b/ext/.gitignore @@ -18,6 +18,7 @@ ppport.h /autodie/Makefile.PL /autouse/Makefile.PL /base/Makefile.PL +/bignum/Makefile.PL /B-Debug/Makefile.PL /B-Deparse/Makefile.PL /B-Lint/Makefile.PL diff --git a/lib/Math/BigFloat/Trace.pm b/ext/bignum/lib/Math/BigFloat/Trace.pm similarity index 100% rename from lib/Math/BigFloat/Trace.pm rename to ext/bignum/lib/Math/BigFloat/Trace.pm diff --git a/lib/Math/BigInt/Trace.pm b/ext/bignum/lib/Math/BigInt/Trace.pm similarity index 100% rename from lib/Math/BigInt/Trace.pm rename to ext/bignum/lib/Math/BigInt/Trace.pm diff --git a/lib/bigint.pm b/ext/bignum/lib/bigint.pm similarity index 100% rename from lib/bigint.pm rename to ext/bignum/lib/bigint.pm diff --git a/lib/bignum.pm b/ext/bignum/lib/bignum.pm similarity index 100% rename from lib/bignum.pm rename to ext/bignum/lib/bignum.pm diff --git a/lib/bigrat.pm b/ext/bignum/lib/bigrat.pm similarity index 100% rename from lib/bigrat.pm rename to ext/bignum/lib/bigrat.pm diff --git a/lib/bignum/t/big_e_pi.t b/ext/bignum/t/big_e_pi.t similarity index 100% rename from lib/bignum/t/big_e_pi.t rename to ext/bignum/t/big_e_pi.t diff --git a/lib/bignum/t/bigexp.t b/ext/bignum/t/bigexp.t similarity index 100% rename from lib/bignum/t/bigexp.t rename to ext/bignum/t/bigexp.t diff --git a/lib/bignum/t/bigint.t b/ext/bignum/t/bigint.t similarity index 100% rename from lib/bignum/t/bigint.t rename to ext/bignum/t/bigint.t diff --git a/lib/bignum/t/bignum.t b/ext/bignum/t/bignum.t similarity index 100% rename from lib/bignum/t/bignum.t rename to ext/bignum/t/bignum.t diff --git a/lib/bignum/t/bigrat.t b/ext/bignum/t/bigrat.t similarity index 100% rename from lib/bignum/t/bigrat.t rename to ext/bignum/t/bigrat.t diff --git a/lib/bignum/t/bii_e_pi.t b/ext/bignum/t/bii_e_pi.t similarity index 100% rename from lib/bignum/t/bii_e_pi.t rename to ext/bignum/t/bii_e_pi.t diff --git a/lib/bignum/t/biinfnan.t b/ext/bignum/t/biinfnan.t similarity index 100% rename from lib/bignum/t/biinfnan.t rename to ext/bignum/t/biinfnan.t diff --git a/lib/bignum/t/bir_e_pi.t b/ext/bignum/t/bir_e_pi.t similarity index 100% rename from lib/bignum/t/bir_e_pi.t rename to ext/bignum/t/bir_e_pi.t diff --git a/lib/bignum/t/bn_lite.t b/ext/bignum/t/bn_lite.t similarity index 100% rename from lib/bignum/t/bn_lite.t rename to ext/bignum/t/bn_lite.t diff --git a/lib/bignum/t/bninfnan.t b/ext/bignum/t/bninfnan.t similarity index 88% rename from lib/bignum/t/bninfnan.t rename to ext/bignum/t/bninfnan.t index 2d6d7ec..fbadb06 100644 --- a/lib/bignum/t/bninfnan.t +++ b/ext/bignum/t/bninfnan.t @@ -11,7 +11,7 @@ BEGIN my $location = $0; $location =~ s/bninfnan.t//i; if ($ENV{PERL_CORE}) { - @INC = qw(../lib ../lib/bignum/t); # testing with the core distribution + #@INC = qw(../lib ../lib/bignum/t); # testing with the core distribution } else { diff --git a/lib/bignum/t/br_lite.t b/ext/bignum/t/br_lite.t similarity index 100% rename from lib/bignum/t/br_lite.t rename to ext/bignum/t/br_lite.t diff --git a/lib/bignum/t/brinfnan.t b/ext/bignum/t/brinfnan.t similarity index 100% rename from lib/bignum/t/brinfnan.t rename to ext/bignum/t/brinfnan.t diff --git a/lib/bignum/t/in_effect.t b/ext/bignum/t/in_effect.t similarity index 100% rename from lib/bignum/t/in_effect.t rename to ext/bignum/t/in_effect.t diff --git a/lib/bignum/t/infnan.inc b/ext/bignum/t/infnan.inc similarity index 100% rename from lib/bignum/t/infnan.inc rename to ext/bignum/t/infnan.inc diff --git a/lib/bignum/t/option_a.t b/ext/bignum/t/option_a.t similarity index 100% rename from lib/bignum/t/option_a.t rename to ext/bignum/t/option_a.t diff --git a/lib/bignum/t/option_l.t b/ext/bignum/t/option_l.t similarity index 100% rename from lib/bignum/t/option_l.t rename to ext/bignum/t/option_l.t diff --git a/lib/bignum/t/option_p.t b/ext/bignum/t/option_p.t similarity index 100% rename from lib/bignum/t/option_p.t rename to ext/bignum/t/option_p.t diff --git a/lib/bignum/t/ratopt_a.t b/ext/bignum/t/ratopt_a.t similarity index 100% rename from lib/bignum/t/ratopt_a.t rename to ext/bignum/t/ratopt_a.t diff --git a/lib/bignum/t/scope_f.t b/ext/bignum/t/scope_f.t similarity index 100% rename from lib/bignum/t/scope_f.t rename to ext/bignum/t/scope_f.t diff --git a/lib/bignum/t/scope_i.t b/ext/bignum/t/scope_i.t similarity index 100% rename from lib/bignum/t/scope_i.t rename to ext/bignum/t/scope_i.t diff --git a/lib/bignum/t/scope_r.t b/ext/bignum/t/scope_r.t similarity index 100% rename from lib/bignum/t/scope_r.t rename to ext/bignum/t/scope_r.t diff --git a/lib/.gitignore b/lib/.gitignore index 7c5244a..7add995 100644 --- a/lib/.gitignore +++ b/lib/.gitignore @@ -8,6 +8,9 @@ /autouse.pm /B.pm /B +/bigint.pm +/bignum.pm +/bigrat.pm /Compress /Config.pm /Config.pod @@ -207,6 +210,8 @@ /Log/Message/Simple.pm /MIME /Math/BigInt/FastCalc.pm +/Math/BigInt/Trace.pm +/Math/BigFloat/Trace.pm /Memoize.pm /Memoize /Memoize/AnyDBM_File.pm