Skip to content

Commit

Permalink
IPC-SysV: Synch with CPAN release 2.09
Browse files Browse the repository at this point in the history
From Changes:

* Fix GitHub #8: Comparison between signed and unsigned integer
* Merge PR #9: Fix compile warnings with -Wsign-compare
* Merge PR #11: Avoid indirect call syntax

Committer: Additional email address for contributor to keep porting
tests happy
  • Loading branch information
mhx authored and jkeenan committed Nov 13, 2020
1 parent a5d5855 commit 2ce8ebb
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Porting/Maintainers.pl
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ package Maintainers;
},

'IPC::SysV' => {
'DISTRIBUTION' => 'MHX/IPC-SysV-2.08.tar.gz',
'DISTRIBUTION' => 'MHX/IPC-SysV-2.09.tar.gz',
'FILES' => q[cpan/IPC-SysV],
'EXCLUDED' => [
qw( const-c.inc
Expand Down
1 change: 1 addition & 0 deletions Porting/checkAUTHORS.pl
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ sub _raw_address {
+ perl5\100tux.freedom.nl
mhx mhx-perl\100gmx.net
+ mhx\100r2d2.(none)
+ mhx\100cpan.org
mst mst\100shadowcat.co.uk
+ matthewt\100hercule.scsys.co.uk
nicholas nick\100ccl4.org
Expand Down
2 changes: 1 addition & 1 deletion cpan/IPC-SysV/SysV.xs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ memwrite(addr, sv, pos, size)
char *caddr = (char *) sv2addr(addr);
STRLEN len;
const char *src = SvPV_const(sv, len);
int n = ((int) len > size) ? size : (int) len;
unsigned int n = ((unsigned int) len > size) ? size : (unsigned int) len;
Copy(src, caddr + pos, n, char);
if (n < size)
{
Expand Down
4 changes: 2 additions & 2 deletions cpan/IPC-SysV/lib/IPC/Msg.pm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use strict;
use vars qw($VERSION);
use Carp;

$VERSION = '2.08';
$VERSION = '2.09';

# Figure out if we have support for native sized types
my $N = do { my $foo = eval { pack "L!", 0 }; $@ ? '' : '!' };
Expand All @@ -42,7 +42,7 @@ my $N = do { my $foo = eval { pack "L!", 0 }; $@ ? '' : '!' };
}

sub new {
@_ == 3 || croak 'new IPC::Msg ( KEY , FLAGS )';
@_ == 3 || croak 'IPC::Msg->new( KEY , FLAGS )';
my $class = shift;

my $id = msgget($_[0],$_[1]);
Expand Down
4 changes: 2 additions & 2 deletions cpan/IPC-SysV/lib/IPC/Semaphore.pm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use strict;
use vars qw($VERSION);
use Carp;

$VERSION = '2.08';
$VERSION = '2.09';

# Figure out if we have support for native sized types
my $N = do { my $foo = eval { pack "L!", 0 }; $@ ? '' : '!' };
Expand All @@ -39,7 +39,7 @@ my $N = do { my $foo = eval { pack "L!", 0 }; $@ ? '' : '!' };
}

sub new {
@_ == 4 || croak 'new ' . __PACKAGE__ . '( KEY, NSEMS, FLAGS )';
@_ == 4 || croak __PACKAGE__ . '->new( KEY, NSEMS, FLAGS )';
my $class = shift;

my $id = semget($_[0],$_[1],$_[2]);
Expand Down
2 changes: 1 addition & 1 deletion cpan/IPC-SysV/lib/IPC/SharedMem.pm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use strict;
use vars qw($VERSION);
use Carp;

$VERSION = '2.08';
$VERSION = '2.09';

# Figure out if we have support for native sized types
my $N = do { my $foo = eval { pack "L!", 0 }; $@ ? '' : '!' };
Expand Down
2 changes: 1 addition & 1 deletion cpan/IPC-SysV/lib/IPC/SysV.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use Config;
require Exporter;
@ISA = qw(Exporter);

$VERSION = '2.08';
$VERSION = '2.09';

# To support new constants, just add them to @EXPORT_OK
# and the C/XS code will be generated automagically.
Expand Down
4 changes: 2 additions & 2 deletions cpan/IPC-SysV/t/ipcsysv.t
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ use warnings;

our %Config;
BEGIN {
require Test::More; import Test::More;
require Config; import Config;
require Test::More; Test::More->import;
require Config; Config->import;

if ($ENV{'PERL_CORE'} && $Config{'extensions'} !~ m[\bIPC/SysV\b]) {
plan(skip_all => 'IPC::SysV was not built');
Expand Down
6 changes: 3 additions & 3 deletions cpan/IPC-SysV/t/msg.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ BEGIN {
@INC = '../lib' if -d '../lib' && -d '../ext';
}

require Test::More; import Test::More;
require Config; import Config;
require Test::More; Test::More->import;
require Config; Config->import;

if ($ENV{'PERL_CORE'} && $Config{'extensions'} !~ m[\bIPC/SysV\b]) {
plan(skip_all => 'IPC::SysV was not built');
Expand All @@ -44,7 +44,7 @@ my $msq = sub {
return $code->();
}
return $code->();
}->(sub { new IPC::Msg(IPC_PRIVATE, S_IRWXU | S_IRWXG | S_IRWXO) });
}->(sub { IPC::Msg->new(IPC_PRIVATE, S_IRWXU | S_IRWXG | S_IRWXO) });

unless (defined $msq) {
my $info = "IPC::Msg->new failed: $!";
Expand Down
8 changes: 4 additions & 4 deletions cpan/IPC-SysV/t/pod.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ BEGIN {
@INC = '../lib' if -d '../lib' && -d '../ext';
}

require Test::More; import Test::More;
require Config; import Config;
require Test::More; Test::More->import;
require Config; Config->import;

if ($ENV{'PERL_CORE'} && $Config{'extensions'} !~ m[\bIPC/SysV\b]) {
plan(skip_all => 'IPC::SysV was not built');
Expand Down Expand Up @@ -51,12 +51,12 @@ eval {
require Test::Pod;
$Test::Pod::VERSION >= 0.95
or die "Test::Pod version only $Test::Pod::VERSION";
import Test::Pod tests => scalar @pods;
Test::Pod->import( tests => scalar @pods );
};

if ($@) {
require Test::More;
import Test::More skip_all => "testing pod requires Test::Pod";
Test::More->import( skip_all => "testing pod requires Test::Pod" );
}
else {
for my $pod (@pods) {
Expand Down
4 changes: 2 additions & 2 deletions cpan/IPC-SysV/t/podcov.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ BEGIN {
@INC = '../lib' if -d '../lib' && -d '../ext';
}

require Test::More; import Test::More;
require Config; import Config;
require Test::More; Test::More->import;
require Config; Config->import;

if ($ENV{'PERL_CORE'} && $Config{'extensions'} !~ m[\bIPC/SysV\b]) {
plan(skip_all => 'IPC::SysV was not built');
Expand Down
4 changes: 2 additions & 2 deletions cpan/IPC-SysV/t/sem.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ BEGIN {
@INC = '../lib' if -d '../lib' && -d '../ext';
}

require Test::More; import Test::More;
require Config; import Config;
require Test::More; Test::More->import;
require Config; Config->import;

if ($ENV{'PERL_CORE'} && $Config{'extensions'} !~ m[\bIPC/SysV\b]) {
plan(skip_all => 'IPC::SysV was not built');
Expand Down
4 changes: 2 additions & 2 deletions cpan/IPC-SysV/t/shm.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ BEGIN {
@INC = '../lib' if -d '../lib' && -d '../ext';
}

require Test::More; import Test::More;
require Config; import Config;
require Test::More; Test::More->import;
require Config; Config->import;

if ($ENV{'PERL_CORE'} && $Config{'extensions'} !~ m[\bIPC/SysV\b]) {
plan(skip_all => 'IPC::SysV was not built');
Expand Down

0 comments on commit 2ce8ebb

Please sign in to comment.