summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-10-25 10:09:09 +0100
committerNicholas Clark <nick@ccl4.org>2010-10-25 10:12:29 +0100
commitf08c115232e81b81b2b2af287ebfc9b454150b2b (patch)
tree24fa6c9484be2afca6378971a76a3ff83efdb22f /dist
parent8e1dd0a2ad889c79bba741c52cdd829ba2dd9863 (diff)
downloadperl-f08c115232e81b81b2b2af287ebfc9b454150b2b.tar.gz
Convert Math::BigInt::FastCalc to XSLoader.
As the minimum perl version is 5.006, enable 'use warnings'.
Diffstat (limited to 'dist')
-rw-r--r--dist/Math-BigInt-FastCalc/FastCalc.pm10
1 files changed, 4 insertions, 6 deletions
diff --git a/dist/Math-BigInt-FastCalc/FastCalc.pm b/dist/Math-BigInt-FastCalc/FastCalc.pm
index 03af519e08..24ab90b67f 100644
--- a/dist/Math-BigInt-FastCalc/FastCalc.pm
+++ b/dist/Math-BigInt-FastCalc/FastCalc.pm
@@ -2,18 +2,16 @@ package Math::BigInt::FastCalc;
use 5.006;
use strict;
-# use warnings; # dont use warnings for older Perls
+use warnings;
-use DynaLoader;
use Math::BigInt::Calc;
-use vars qw/@ISA $VERSION $BASE $BASE_LEN/;
-
-@ISA = qw(DynaLoader);
+use vars qw/$VERSION $BASE $BASE_LEN/;
$VERSION = '0.23';
-bootstrap Math::BigInt::FastCalc $VERSION;
+require XSLoader;
+XSLoader::load(__PACKAGE__);
##############################################################################
# global constants, flags and accessory