ruby-changes:70225
From: Nobuyoshi <ko1@a...>
Date: Wed, 15 Dec 2021 15:04:57 +0900 (JST)
Subject: [ruby-changes:70225] 88e36d8f3c (master): Adjust styles [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=88e36d8f3c From 88e36d8f3c75a9b57d68e930385a23ff54b05cf3 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 21 Jul 2021 12:24:22 +0900 Subject: Adjust styles [ci skip] * --braces-after-func-def-line * --space-after-for --- hash.c | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/hash.c b/hash.c index b81e206ab19..f8c5249837f 100644 --- a/hash.c +++ b/hash.c @@ -5381,11 +5381,11 @@ env_entry_count() https://github.com/ruby/ruby/blob/trunk/hash.c#L5381 } static void -copy_env_pairs(VALUE arr[], int size) { +copy_env_pairs(VALUE arr[], int size) +{ char **env; env = GET_ENVIRON(environ); - for(int i = 0; i < size; i++) - { + for (int i = 0; i < size; i++) { const char *p = *env; arr[i] = p; env++; @@ -5406,8 +5406,7 @@ env_keys(int raw) https://github.com/ruby/ruby/blob/trunk/hash.c#L5406 copy_env_pairs(env_pairs, pair_count); rb_native_mutex_unlock(&env_lock); - for(int current_pair = 0; current_pair < pair_count; current_pair++) - { + for (int current_pair = 0; current_pair < pair_count; current_pair++) { const char *p = env_pairs[current_pair]; char *s = strchr(p, '='); if (s) { @@ -5500,8 +5499,7 @@ env_values(void) https://github.com/ruby/ruby/blob/trunk/hash.c#L5499 copy_env_pairs(env_pairs, pair_count); rb_native_mutex_unlock(&env_lock); - for(int current_pair = 0; current_pair < pair_count; current_pair++) - { + for (int current_pair = 0; current_pair < pair_count; current_pair++) { const char *p = env_pairs[current_pair]; char *s = strchr(p, '='); if (s) { @@ -5594,8 +5592,7 @@ env_each_pair(VALUE ehash) https://github.com/ruby/ruby/blob/trunk/hash.c#L5592 copy_env_pairs(env_pairs, pair_count); rb_native_mutex_unlock(&env_lock); - for(int current_pair = 0; current_pair < pair_count; current_pair++) - { + for (int current_pair = 0; current_pair < pair_count; current_pair++) { const char *p = env_pairs[current_pair]; char *s = strchr(p, '='); if (s) { @@ -5952,8 +5949,7 @@ env_inspect(VALUE _) https://github.com/ruby/ruby/blob/trunk/hash.c#L5949 copy_env_pairs(env_pairs, pair_count); rb_native_mutex_unlock(&env_lock); - for(int current_pair = 0; current_pair < pair_count; current_pair++) - { + for (int current_pair = 0; current_pair < pair_count; current_pair++) { const char *p = env_pairs[current_pair]; char *s = strchr(p, '='); @@ -5995,8 +5991,7 @@ env_to_a(VALUE _) https://github.com/ruby/ruby/blob/trunk/hash.c#L5991 copy_env_pairs(env_pairs, pair_count); rb_native_mutex_unlock(&env_lock); - for(int current_pair = 0; current_pair < pair_count; current_pair++) - { + for (int current_pair = 0; current_pair < pair_count; current_pair++) { const char *p = env_pairs[current_pair]; char *s = strchr(p, '='); if (s) { @@ -6241,8 +6236,7 @@ env_key(VALUE dmy, VALUE value) https://github.com/ruby/ruby/blob/trunk/hash.c#L6236 copy_env_pairs(env_pairs, pair_count); rb_native_mutex_unlock(&env_lock); - for(int current_pair = 0; current_pair < pair_count; current_pair++) - { + for (int current_pair = 0; current_pair < pair_count; current_pair++) { const char *p = env_pairs[current_pair]; char *s = strchr(p, '='); if (s++) { @@ -6270,8 +6264,7 @@ env_to_hash(void) https://github.com/ruby/ruby/blob/trunk/hash.c#L6264 copy_env_pairs(env_pairs, pair_count); rb_native_mutex_unlock(&env_lock); - for(int current_pair = 0; current_pair < pair_count; current_pair++) - { + for (int current_pair = 0; current_pair < pair_count; current_pair++) { const char *p = env_pairs[current_pair]; char *s = strchr(p, '='); if (s) { -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/