ruby-changes:68297
From: Nobuyoshi <ko1@a...>
Date: Thu, 7 Oct 2021 19:59:06 +0900 (JST)
Subject: [ruby-changes:68297] a706c09fa6 (master): Adjust styles [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=a706c09fa6 From a706c09fa64e4e1e2e6e08e74bafbdd39050bdc1 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 7 Oct 2021 17:56:57 +0900 Subject: Adjust styles [ci skip] --- io.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/io.c b/io.c index 5ad2b6474c..2a736ceb27 100644 --- a/io.c +++ b/io.c @@ -1311,8 +1311,8 @@ io_from_fd(int fd) https://github.com/ruby/ruby/blob/trunk/io.c#L1311 return prep_io(fd, FMODE_PREP, rb_cIO, NULL); } -static -int io_wait_for_single_fd(int fd, int events, struct timeval *timeout) +static int +io_wait_for_single_fd(int fd, int events, struct timeval *timeout) { VALUE scheduler = rb_fiber_scheduler_current(); @@ -1420,7 +1420,8 @@ rb_thread_fd_writable(int fd) https://github.com/ruby/ruby/blob/trunk/io.c#L1420 return rb_wait_for_single_fd(fd, RUBY_IO_WRITABLE, NULL); } -VALUE rb_io_maybe_wait(int error, VALUE io, VALUE events, VALUE timeout) +VALUE +rb_io_maybe_wait(int error, VALUE io, VALUE events, VALUE timeout) { // fptr->fd can be set to -1 at any time by another thread when the GVL is // released. Many code, e.g. `io_bufread` didn't check this correctly and @@ -1460,12 +1461,14 @@ VALUE rb_io_maybe_wait(int error, VALUE io, VALUE events, VALUE timeout) https://github.com/ruby/ruby/blob/trunk/io.c#L1461 } } -int rb_io_maybe_wait_readable(int error, VALUE io, VALUE timeout) +int +rb_io_maybe_wait_readable(int error, VALUE io, VALUE timeout) { return RB_NUM2INT(rb_io_maybe_wait(error, io, RB_INT2NUM(RUBY_IO_READABLE), timeout)); } -int rb_io_maybe_wait_writable(int error, VALUE io, VALUE timeout) +int +rb_io_maybe_wait_writable(int error, VALUE io, VALUE timeout) { return RB_NUM2INT(rb_io_maybe_wait(error, io, RB_INT2NUM(RUBY_IO_WRITABLE), timeout)); } -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/