From 23c413edce303b9cc12de4ea1e38de3ae1002e86 Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Sat, 12 Mar 2022 09:06:55 +0100 Subject: dist/IO: replace "define\t" with "define " This cleans up the defines in dist/IO/poll.h. "#define\t" is annoying as it is it 8 spaces wide, so it looks like "#define ", yet will not be found in a grep for "define foo" as the space is actually a tab. --- dist/IO/ChangeLog | 3 +++ dist/IO/IO.pm | 2 +- dist/IO/lib/IO/Dir.pm | 2 +- dist/IO/lib/IO/File.pm | 2 +- dist/IO/lib/IO/Handle.pm | 2 +- dist/IO/lib/IO/Pipe.pm | 2 +- dist/IO/lib/IO/Poll.pm | 2 +- dist/IO/lib/IO/Seekable.pm | 2 +- dist/IO/lib/IO/Select.pm | 2 +- dist/IO/lib/IO/Socket.pm | 2 +- dist/IO/lib/IO/Socket/INET.pm | 2 +- dist/IO/lib/IO/Socket/UNIX.pm | 2 +- dist/IO/poll.h | 22 +++++++++++----------- 13 files changed, 25 insertions(+), 22 deletions(-) (limited to 'dist') diff --git a/dist/IO/ChangeLog b/dist/IO/ChangeLog index 272429f67a..7d39f85846 100644 --- a/dist/IO/ChangeLog +++ b/dist/IO/ChangeLog @@ -1,3 +1,6 @@ +IO 1.52 + * Replace "define" with "define" in poll.h + IO 1.51 * #20201 bump dist/IO to v1.51, due to PR 19663 * [doc] Update IO::Handle synopsis. Add `my` to examples for better practice. diff --git a/dist/IO/IO.pm b/dist/IO/IO.pm index 8dd83ac99c..256f37507a 100644 --- a/dist/IO/IO.pm +++ b/dist/IO/IO.pm @@ -7,7 +7,7 @@ use Carp; use strict; use warnings; -our $VERSION = "1.51"; +our $VERSION = "1.52"; XSLoader::load 'IO', $VERSION; sub import { diff --git a/dist/IO/lib/IO/Dir.pm b/dist/IO/lib/IO/Dir.pm index b02a07cf29..72cbed3522 100644 --- a/dist/IO/lib/IO/Dir.pm +++ b/dist/IO/lib/IO/Dir.pm @@ -18,7 +18,7 @@ use File::stat; use File::Spec; our @ISA = qw(Tie::Hash Exporter); -our $VERSION = "1.51"; +our $VERSION = "1.52"; our @EXPORT_OK = qw(DIR_UNLINK); diff --git a/dist/IO/lib/IO/File.pm b/dist/IO/lib/IO/File.pm index 33dfbff92b..a3ff37af50 100644 --- a/dist/IO/lib/IO/File.pm +++ b/dist/IO/lib/IO/File.pm @@ -135,7 +135,7 @@ require Exporter; our @ISA = qw(IO::Handle IO::Seekable Exporter); -our $VERSION = "1.51"; +our $VERSION = "1.52"; our @EXPORT = @IO::Seekable::EXPORT; diff --git a/dist/IO/lib/IO/Handle.pm b/dist/IO/lib/IO/Handle.pm index e9d6f74dac..18fe7140c1 100644 --- a/dist/IO/lib/IO/Handle.pm +++ b/dist/IO/lib/IO/Handle.pm @@ -270,7 +270,7 @@ use IO (); # Load the XS module require Exporter; our @ISA = qw(Exporter); -our $VERSION = "1.51"; +our $VERSION = "1.52"; our @EXPORT_OK = qw( autoflush diff --git a/dist/IO/lib/IO/Pipe.pm b/dist/IO/lib/IO/Pipe.pm index a00fce438e..a99391edc4 100644 --- a/dist/IO/lib/IO/Pipe.pm +++ b/dist/IO/lib/IO/Pipe.pm @@ -13,7 +13,7 @@ use strict; use Carp; use Symbol; -our $VERSION = "1.51"; +our $VERSION = "1.52"; sub new { my $type = shift; diff --git a/dist/IO/lib/IO/Poll.pm b/dist/IO/lib/IO/Poll.pm index 271aef27f1..091461f6d7 100644 --- a/dist/IO/lib/IO/Poll.pm +++ b/dist/IO/lib/IO/Poll.pm @@ -12,7 +12,7 @@ use IO::Handle; use Exporter (); our @ISA = qw(Exporter); -our $VERSION = "1.51"; +our $VERSION = "1.52"; our @EXPORT = qw( POLLIN POLLOUT diff --git a/dist/IO/lib/IO/Seekable.pm b/dist/IO/lib/IO/Seekable.pm index 303df72e23..c2a1b308b6 100644 --- a/dist/IO/lib/IO/Seekable.pm +++ b/dist/IO/lib/IO/Seekable.pm @@ -106,7 +106,7 @@ require Exporter; our @EXPORT = qw(SEEK_SET SEEK_CUR SEEK_END); our @ISA = qw(Exporter); -our $VERSION = "1.51"; +our $VERSION = "1.52"; sub seek { @_ == 3 or croak 'usage: $io->seek(POS, WHENCE)'; diff --git a/dist/IO/lib/IO/Select.pm b/dist/IO/lib/IO/Select.pm index f19ecb3031..7eb99bd0ea 100644 --- a/dist/IO/lib/IO/Select.pm +++ b/dist/IO/lib/IO/Select.pm @@ -10,7 +10,7 @@ use strict; use warnings::register; require Exporter; -our $VERSION = "1.51"; +our $VERSION = "1.52"; our @ISA = qw(Exporter); # This is only so we can do version checking diff --git a/dist/IO/lib/IO/Socket.pm b/dist/IO/lib/IO/Socket.pm index 621c6e58d7..7c2540b35c 100644 --- a/dist/IO/lib/IO/Socket.pm +++ b/dist/IO/lib/IO/Socket.pm @@ -23,7 +23,7 @@ require IO::Socket::UNIX if ($^O ne 'epoc' && $^O ne 'symbian'); our @ISA = qw(IO::Handle); -our $VERSION = "1.51"; +our $VERSION = "1.52"; our @EXPORT_OK = qw(sockatmark); diff --git a/dist/IO/lib/IO/Socket/INET.pm b/dist/IO/lib/IO/Socket/INET.pm index b23ba1d268..97d445043c 100644 --- a/dist/IO/lib/IO/Socket/INET.pm +++ b/dist/IO/lib/IO/Socket/INET.pm @@ -14,7 +14,7 @@ use Exporter; use Errno; our @ISA = qw(IO::Socket); -our $VERSION = "1.51"; +our $VERSION = "1.52"; my $EINVAL = exists(&Errno::EINVAL) ? Errno::EINVAL() : 1; diff --git a/dist/IO/lib/IO/Socket/UNIX.pm b/dist/IO/lib/IO/Socket/UNIX.pm index 9457d06baa..89deec2620 100644 --- a/dist/IO/lib/IO/Socket/UNIX.pm +++ b/dist/IO/lib/IO/Socket/UNIX.pm @@ -11,7 +11,7 @@ use IO::Socket; use Carp; our @ISA = qw(IO::Socket); -our $VERSION = "1.51"; +our $VERSION = "1.52"; IO::Socket::UNIX->register_domain( AF_UNIX ); diff --git a/dist/IO/poll.h b/dist/IO/poll.h index 0b025c0ad2..78b5ba6afa 100644 --- a/dist/IO/poll.h +++ b/dist/IO/poll.h @@ -38,20 +38,20 @@ typedef struct pollfd { short revents; } pollfd_t; -#define POLLIN 0x0001 -#define POLLPRI 0x0002 -#define POLLOUT 0x0004 -#define POLLRDNORM 0x0040 -#define POLLWRNORM POLLOUT -#define POLLRDBAND 0x0080 -#define POLLWRBAND 0x0100 -#define POLLNORM POLLRDNORM +#define POLLIN 0x0001 +#define POLLPRI 0x0002 +#define POLLOUT 0x0004 +#define POLLRDNORM 0x0040 +#define POLLWRNORM POLLOUT +#define POLLRDBAND 0x0080 +#define POLLWRBAND 0x0100 +#define POLLNORM POLLRDNORM /* Return ONLY events (NON testable) */ -#define POLLERR 0x0008 -#define POLLHUP 0x0010 -#define POLLNVAL 0x0020 +#define POLLERR 0x0008 +#define POLLHUP 0x0010 +#define POLLNVAL 0x0020 #endif -- cgit v1.2.1