[前][次][番号順一覧][スレッド一覧]

ruby-changes:72837

From: Nobuyoshi <ko1@a...>
Date: Sat, 6 Aug 2022 10:14:15 +0900 (JST)
Subject: [ruby-changes:72837] 58c8b6e862 (master): Adjust styles [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=58c8b6e862

From 58c8b6e86273ccb7a1b903d9ab35956b69b3b1bf Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 6 Aug 2022 10:13:20 +0900
Subject: Adjust styles [ci skip]

---
 enumerator.c   | 24 ++++++++++++++++--------
 marshal.c      |  3 ++-
 ruby.c         |  3 ++-
 thread_sync.c  |  6 ++++--
 vm_backtrace.c |  6 ++++--
 win32/win32.c  |  6 ++++--
 6 files changed, 32 insertions(+), 16 deletions(-)

diff --git a/enumerator.c b/enumerator.c
index ce2eacbd2a..d7546ee9e8 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -1796,7 +1796,8 @@ lazy_initialize(int argc, VALUE *argv, VALUE self) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1796
  * Expands +lazy+ enumerator to an array.
  * See Enumerable#to_a.
  */
-static VALUE lazy_to_a(VALUE self)
+static VALUE
+lazy_to_a(VALUE self)
 {
 }
 #endif
@@ -2753,7 +2754,8 @@ lazy_with_index(int argc, VALUE *argv, VALUE obj) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L2754
  *
  *  Like Enumerable#chunk, but chains operation to be lazy-evaluated.
  */
-static VALUE lazy_chunk(VALUE self)
+static VALUE
+lazy_chunk(VALUE self)
 {
 }
 
@@ -2763,7 +2765,8 @@ static VALUE lazy_chunk(VALUE self) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L2765
  *
  *  Like Enumerable#chunk_while, but chains operation to be lazy-evaluated.
  */
-static VALUE lazy_chunk_while(VALUE self)
+static VALUE
+lazy_chunk_while(VALUE self)
 {
 }
 
@@ -2774,7 +2777,8 @@ static VALUE lazy_chunk_while(VALUE self) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L2777
  *
  *  Like Enumerable#slice_after, but chains operation to be lazy-evaluated.
  */
-static VALUE lazy_slice_after(VALUE self)
+static VALUE
+lazy_slice_after(VALUE self)
 {
 }
 
@@ -2785,7 +2789,8 @@ static VALUE lazy_slice_after(VALUE self) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L2789
  *
  *  Like Enumerable#slice_before, but chains operation to be lazy-evaluated.
  */
-static VALUE lazy_slice_before(VALUE self)
+static VALUE
+lazy_slice_before(VALUE self)
 {
 }
 
@@ -2795,7 +2800,8 @@ static VALUE lazy_slice_before(VALUE self) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L2800
  *
  *  Like Enumerable#slice_when, but chains operation to be lazy-evaluated.
  */
-static VALUE lazy_slice_when(VALUE self)
+static VALUE
+lazy_slice_when(VALUE self)
 {
 }
 # endif
@@ -3562,7 +3568,8 @@ product_each(VALUE obj, struct product_state *pstate) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L3568
         VALUE eobj = RARRAY_AREF(enums, pstate->index);
 
         rb_block_call(eobj, id_each_entry, 0, NULL, product_each_i, (VALUE)pstate);
-    } else {
+    }
+    else {
         rb_funcallv(pstate->block, id_call, pstate->argc, pstate->argv);
     }
 
@@ -3677,7 +3684,8 @@ enumerator_s_product(VALUE klass, VALUE enums) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L3684
 
     if (rb_block_given_p()) {
         return enum_product_run(obj, rb_block_proc());
-    } else {
+    }
+    else {
         return obj;
     }
 }
diff --git a/marshal.c b/marshal.c
index 43102a54c5..325d5f126e 100644
--- a/marshal.c
+++ b/marshal.c
@@ -2260,7 +2260,8 @@ rb_marshal_load_with_proc(VALUE port, VALUE proc, bool freeze) https://github.com/ruby/ruby/blob/trunk/marshal.c#L2260
     return v;
 }
 
-static VALUE marshal_load(rb_execution_context_t *ec, VALUE mod, VALUE source, VALUE proc, VALUE freeze)
+static VALUE
+marshal_load(rb_execution_context_t *ec, VALUE mod, VALUE source, VALUE proc, VALUE freeze)
 {
     return rb_marshal_load_with_proc(source, proc, RTEST(freeze));
 }
diff --git a/ruby.c b/ruby.c
index 9b9bfb54c7..991c9031de 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1529,7 +1529,8 @@ void rb_call_builtin_inits(void); https://github.com/ruby/ruby/blob/trunk/ruby.c#L1529
 #if RBIMPL_HAS_ATTRIBUTE(weak)
 __attribute__((weak))
 #endif
-void Init_extra_exts(void)
+void
+Init_extra_exts(void)
 {
 }
 
diff --git a/thread_sync.c b/thread_sync.c
index 0359ac2214..63db1c4392 100644
--- a/thread_sync.c
+++ b/thread_sync.c
@@ -624,7 +624,8 @@ rb_mutex_synchronize_m(VALUE self) https://github.com/ruby/ruby/blob/trunk/thread_sync.c#L624
     return rb_mutex_synchronize(self, rb_yield, Qundef);
 }
 
-void rb_mutex_allow_trap(VALUE self, int val)
+void
+rb_mutex_allow_trap(VALUE self, int val)
 {
     Check_TypedStruct(self, &mutex_data_type);
 
@@ -714,7 +715,8 @@ queue_ptr(VALUE obj) https://github.com/ruby/ruby/blob/trunk/thread_sync.c#L715
 #define QUEUE_CLOSED          FL_USER5
 
 static rb_hrtime_t
-queue_timeout2hrtime(VALUE timeout) {
+queue_timeout2hrtime(VALUE timeout)
+{
     if (NIL_P(timeout)) {
         return (rb_hrtime_t)0;
     }
diff --git a/vm_backtrace.c b/vm_backtrace.c
index 5bd588df12..2e898507df 100644
--- a/vm_backtrace.c
+++ b/vm_backtrace.c
@@ -1176,12 +1176,14 @@ rb_vm_thread_backtrace_locations(int argc, const VALUE *argv, VALUE thval) https://github.com/ruby/ruby/blob/trunk/vm_backtrace.c#L1176
     return thread_backtrace_to_ary(argc, argv, thval, 0);
 }
 
-VALUE rb_vm_backtrace(int argc, const VALUE * argv, struct rb_execution_context_struct * ec)
+VALUE
+rb_vm_backtrace(int argc, const VALUE * argv, struct rb_execution_context_struct * ec)
 {
     return ec_backtrace_to_ary(ec, argc, argv, 0, 0, 1);
 }
 
-VALUE rb_vm_backtrace_locations(int argc, const VALUE * argv, struct rb_execution_context_struct * ec)
+VALUE
+rb_vm_backtrace_locations(int argc, const VALUE * argv, struct rb_execution_context_struct * ec)
 {
     return ec_backtrace_to_ary(ec, argc, argv, 0, 0, 0);
 }
diff --git a/win32/win32.c b/win32/win32.c
index 6d3e368565..edf89be4b1 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -5406,7 +5406,8 @@ wrename(const WCHAR *oldpath, const WCHAR *newpath) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L5406
 }
 
 /* License: Ruby's */
-int rb_w32_urename(const char *from, const char *to)
+int
+rb_w32_urename(const char *from, const char *to)
 {
     WCHAR *wfrom;
     WCHAR *wto;
@@ -5425,7 +5426,8 @@ int rb_w32_urename(const char *from, const char *to) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L5426
 }
 
 /* License: Ruby's */
-int rb_w32_rename(const char *from, const char *to)
+int
+rb_w32_rename(const char *from, const char *to)
 {
     WCHAR *wfrom;
     WCHAR *wto;
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]