ruby-changes:54547
From: nobu <ko1@a...>
Date: Wed, 9 Jan 2019 22:58:55 +0900 (JST)
Subject: [ruby-changes:54547] nobu:r66762 (trunk): Fix styles [ci skip]
nobu 2019-01-09 22:58:49 +0900 (Wed, 09 Jan 2019) New Revision: 66762 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66762 Log: Fix styles [ci skip] Modified files: trunk/array.c trunk/compile.c trunk/cont.c trunk/dir.c trunk/iseq.c trunk/mjit_worker.c trunk/range.c trunk/vm_method.c Index: range.c =================================================================== --- range.c (revision 66761) +++ range.c (revision 66762) @@ -1472,9 +1472,11 @@ r_cover_range_p(VALUE range, VALUE beg, https://github.com/ruby/ruby/blob/trunk/range.c#L1472 if (EXCL(range) == EXCL(val)) { return cmp_end >= 0; - } else if (EXCL(range)) { + } + else if (EXCL(range)) { return cmp_end > 0; - } else if (cmp_end >= 0) { + } + else if (cmp_end >= 0) { return TRUE; } Index: compile.c =================================================================== --- compile.c (revision 66761) +++ compile.c (revision 66762) @@ -3895,11 +3895,7 @@ static_literal_node_p(const NODE *node, https://github.com/ruby/ruby/blob/trunk/compile.c#L3895 case NODE_FALSE: return TRUE; case NODE_STR: - if (ISEQ_COMPILE_DATA(iseq)->option->frozen_string_literal) { - return TRUE; - } else { - return FALSE; - } + return ISEQ_COMPILE_DATA(iseq)->option->frozen_string_literal; default: return FALSE; } Index: iseq.c =================================================================== --- iseq.c (revision 66761) +++ iseq.c (revision 66762) @@ -191,7 +191,8 @@ rb_iseq_each_value(const rb_iseq_t *iseq https://github.com/ruby/ruby/blob/trunk/iseq.c#L191 #if OPT_DIRECT_THREADED_CODE || OPT_CALL_THREADED_CODE if (FL_TEST(iseq, ISEQ_TRANSLATED)) { translator = rb_vm_insn_addr2insn2; - } else { + } + else { translator = rb_vm_insn_null_translator; } #else Index: vm_method.c =================================================================== --- vm_method.c (revision 66761) +++ vm_method.c (revision 66762) @@ -1296,7 +1296,8 @@ check_definition_visibility(VALUE mod, i https://github.com/ruby/ruby/blob/trunk/vm_method.c#L1296 if (argc == 1) { inc_super = 1; - } else { + } + else { inc_super = RTEST(include_super); if (!inc_super) { lookup_mod = RCLASS_ORIGIN(mod); Index: cont.c =================================================================== --- cont.c (revision 66761) +++ cont.c (revision 66762) @@ -875,11 +875,13 @@ fiber_machine_stack_alloc(size_t size) https://github.com/ruby/ruby/blob/trunk/cont.c#L875 machine_stack_cache_index--; machine_stack_cache[machine_stack_cache_index].ptr = NULL; machine_stack_cache[machine_stack_cache_index].size = 0; - } else { + } + else { /* TODO handle multiple machine stack size */ rb_bug("machine_stack_cache size is not canonicalized"); } - } else { + } + else { #ifdef _WIN32 ptr = VirtualAlloc(0, size, MEM_COMMIT, PAGE_READWRITE); Index: array.c =================================================================== --- array.c (revision 66761) +++ array.c (revision 66762) @@ -188,7 +188,8 @@ ary_verify_(VALUE ary, const char *file, https://github.com/ruby/ruby/blob/trunk/array.c#L188 } void -rb_ary_verify(VALUE ary){ +rb_ary_verify(VALUE ary) +{ ary_verify(ary); } #else @@ -4531,7 +4532,7 @@ rb_ary_difference_multi(int argc, VALUE https://github.com/ruby/ruby/blob/trunk/array.c#L4532 for (i = 0; i < RARRAY_LEN(ary); i++) { int j; VALUE elt = rb_ary_elt(ary, i); - for (j = 0; j < argc; j++){ + for (j = 0; j < argc; j++) { if (is_hash[j]) { if (rb_hash_stlike_lookup(argv[j], RARRAY_AREF(ary, i), NULL)) break; @@ -4691,7 +4692,7 @@ rb_ary_union_multi(int argc, VALUE *argv https://github.com/ruby/ruby/blob/trunk/array.c#L4692 VALUE hash, ary_union; sum = RARRAY_LEN(ary); - for (i = 0; i < argc; i++){ + for (i = 0; i < argc; i++) { argv[i] = to_ary(argv[i]); sum += RARRAY_LEN(argv[i]); } Index: dir.c =================================================================== --- dir.c (revision 66761) +++ dir.c (revision 66762) @@ -2061,7 +2061,8 @@ join_path_from_pattern(struct glob_patte https://github.com/ruby/ruby/blob/trunk/dir.c#L2061 path = GLOB_ALLOC_N(char, path_len + 1); memcpy(path, str, path_len); path[path_len] = '\0'; - } else { + } + else { size_t len = strlen(str); char *tmp; tmp = GLOB_REALLOC(path, path_len + len + 2); Index: mjit_worker.c =================================================================== --- mjit_worker.c (revision 66761) +++ mjit_worker.c (revision 66762) @@ -619,7 +619,8 @@ exec_process(const char *path, char *con https://github.com/ruby/ruby/blob/trunk/mjit_worker.c#L619 if (WIFEXITED(stat)) { exit_code = WEXITSTATUS(stat); break; - } else if (WIFSIGNALED(stat)) { + } + else if (WIFSIGNALED(stat)) { exit_code = -1; break; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/