Skip to content

Commit

Permalink
dist/IO: Use ppport definition of OpSIBLING
Browse files Browse the repository at this point in the history
This module uses ppport.h, and its definition of this macro is more
robust than the module's.  And in any event, there shouldn't be
redundant definitions, so that fixes to ppport.h automatically propagate
to here and other modules.
  • Loading branch information
khwilliamson authored and atoomic committed Sep 13, 2023
1 parent 91497b7 commit 4e1743c
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dist/IO/IO.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use Carp;
use strict;
use warnings;

our $VERSION = "1.52";
our $VERSION = "1.53";
XSLoader::load 'IO', $VERSION;

sub import {
Expand Down
4 changes: 0 additions & 4 deletions dist/IO/IO.xs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ typedef FILE * OutputStream;
# define NORETURN_FUNCTION_END /* NOT REACHED */ return 0
#endif

#ifndef OpSIBLING
# define OpSIBLING(o) (o)->op_sibling
#endif

static int not_here(const char *s) __attribute__noreturn__;
static int
not_here(const char *s)
Expand Down
2 changes: 1 addition & 1 deletion dist/IO/lib/IO/Dir.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use File::stat;
use File::Spec;

our @ISA = qw(Tie::Hash Exporter);
our $VERSION = "1.52";
our $VERSION = "1.53";

our @EXPORT_OK = qw(DIR_UNLINK);

Expand Down
2 changes: 1 addition & 1 deletion dist/IO/lib/IO/File.pm
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ require Exporter;

our @ISA = qw(IO::Handle IO::Seekable Exporter);

our $VERSION = "1.52";
our $VERSION = "1.53";

our @EXPORT = @IO::Seekable::EXPORT;

Expand Down
2 changes: 1 addition & 1 deletion dist/IO/lib/IO/Handle.pm
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ use IO (); # Load the XS module
require Exporter;
our @ISA = qw(Exporter);

our $VERSION = "1.52";
our $VERSION = "1.53";

our @EXPORT_OK = qw(
autoflush
Expand Down
2 changes: 1 addition & 1 deletion dist/IO/lib/IO/Pipe.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use strict;
use Carp;
use Symbol;

our $VERSION = "1.52";
our $VERSION = "1.53";

sub new {
my $type = shift;
Expand Down
2 changes: 1 addition & 1 deletion dist/IO/lib/IO/Poll.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use IO::Handle;
use Exporter ();

our @ISA = qw(Exporter);
our $VERSION = "1.52";
our $VERSION = "1.53";

our @EXPORT = qw( POLLIN
POLLOUT
Expand Down
2 changes: 1 addition & 1 deletion dist/IO/lib/IO/Seekable.pm
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ require Exporter;
our @EXPORT = qw(SEEK_SET SEEK_CUR SEEK_END);
our @ISA = qw(Exporter);

our $VERSION = "1.52";
our $VERSION = "1.53";

sub seek {
@_ == 3 or croak 'usage: $io->seek(POS, WHENCE)';
Expand Down
2 changes: 1 addition & 1 deletion dist/IO/lib/IO/Select.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use strict;
use warnings::register;
require Exporter;

our $VERSION = "1.52";
our $VERSION = "1.53";

our @ISA = qw(Exporter); # This is only so we can do version checking

Expand Down
2 changes: 1 addition & 1 deletion dist/IO/lib/IO/Socket.pm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ require IO::Socket::UNIX if ($^O ne 'epoc' && $^O ne 'symbian');

our @ISA = qw(IO::Handle);

our $VERSION = "1.52";
our $VERSION = "1.53";

our @EXPORT_OK = qw(sockatmark);

Expand Down
2 changes: 1 addition & 1 deletion dist/IO/lib/IO/Socket/INET.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Exporter;
use Errno;

our @ISA = qw(IO::Socket);
our $VERSION = "1.52";
our $VERSION = "1.53";

my $EINVAL = exists(&Errno::EINVAL) ? Errno::EINVAL() : 1;

Expand Down
2 changes: 1 addition & 1 deletion dist/IO/lib/IO/Socket/UNIX.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use IO::Socket;
use Carp;

our @ISA = qw(IO::Socket);
our $VERSION = "1.52";
our $VERSION = "1.53";

IO::Socket::UNIX->register_domain( AF_UNIX );

Expand Down

0 comments on commit 4e1743c

Please sign in to comment.