Revision history for Scalar-Vec-Util
+0.02 2008-05-13 16:40 UTC
+ + Chg : Don't smoke this on 5.005 please.
+ + Fix : File::Spec is a build dependency.
+ + Fix : No 64 bits for Win32 (yet).
+
0.01 2008-05-08 17:15 UTC
First version, released on an unsuspecting world.
--- #YAML:1.0
name: Scalar-Vec-Util
-version: 0.01
+version: 0.02
abstract: Utility routines for vec strings.
license: perl
author:
build_requires:
Config: 0
ExtUtils::MakeMaker: 0
+ File::Spec: 0
Test::More: 0
+use 5.006;
+
use strict;
use warnings;
use ExtUtils::MakeMaker;
my ($cpu) = $arch =~ /^([^-]+)/;
my @DEFINES;
-my $unit;
+my $unit = 8;
if (unpack("h*", pack("s", 0x1234)) != 4321) {
print "Forcing unit size of 8 on non-little-endian systems.\n";
- $unit = 8;
} else {
my $align = int($Config{alignbytes} || 0);
print "Checking unit size in bits... ";
- for (8, 16, 32, 64) {
+ my @s = (8, 16, 32);
+ push @s, 64 unless $^O eq 'MSWin32';
+ for (@s) {
my $size = int($Config{'u' . $_ . 'size'} || 0);
$unit = $_ if $size && $size <= $align;
}
my $BUILD_REQUIRES = {
'Config' => 0,
'ExtUtils::MakeMaker' => 0,
+ 'File::Spec' => 0,
'Test::More' => 0,
};
Scalar::Vec::Util - Utility routines for vec strings.
VERSION
- Version 0.01
+ Version 0.02
SYNOPSIS
use Scalar::Vec::Util qw/vfill vcopy veq/;
=head1 VERSION
-Version 0.01
+Version 0.02
=cut
our $VERSION;
BEGIN {
- $VERSION = '0.01';
+ $VERSION = '0.02';
eval {
require XSLoader;
XSLoader::load(__PACKAGE__, $VERSION);