use warnings;
use Carp;
-use base 'DynaLoader';
+require XSLoader;
# Export everything since these functions are only used by a test script
# Export subpackages too - in effect, export all their routines into us, then
}
}
foreach (keys %{$exports||{}}) {
- next unless /\A(?:rpn|calcrpn|stufftest|swaptwostmts)\z/;
+ next unless /\A(?:rpn|calcrpn|stufftest|swaptwostmts|looprest|scopelessblock|stmtasexpr|stmtsasexpr|loopblock|blockasexpr|swaplabel|labelconst|arrayfullexpr|arraylistexpr|arraytermexpr|arrayarithexpr|arrayexprflags)\z/;
$^H{"XS::APItest/$_"} = 1;
delete $exports->{$_};
}
}
}
-our $VERSION = '0.23';
+our $VERSION = '0.27';
use vars '$WARNINGS_ON_BOOTSTRAP';
use vars map "\$${_}_called_PP", qw(BEGIN UNITCHECK CHECK INIT END);
}
if ($WARNINGS_ON_BOOTSTRAP) {
- bootstrap XS::APItest $VERSION;
+ XSLoader::load();
} else {
# More CHECK and INIT blocks that could warn:
local $^W;
- bootstrap XS::APItest $VERSION;
+ XSLoader::load();
}
1;