8000 Fix styles [ci skip] · github/ruby@78d6e33 · GitHub
[go: up one dir, main page]

Skip to content

Commit 78d6e33

Browse files
committed
Fix styles [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent df0faba commit 78d6e33

File tree

8 files changed

+21
-16
lines changed

8 files changed

+21
-16
lines changed

array.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ ary_verify_(VALUE ary, const char *file, int line)
188188
}
189189

190190
void
191-
rb_ary_verify(VALUE ary){
191+
rb_ary_verify(VALUE ary)
192+
{
192193
ary_verify(ary);
193194
}
194195
#else
@@ -4531,7 +4532,7 @@ rb_ary_difference_multi(int argc, VALUE *argv, VALUE ary)
45314532
for (i = 0; i < RARRAY_LEN(ary); i++) {
45324533
int j;
45334534
VALUE elt = rb_ary_elt(ary, i);
4534-
for (j = 0; j < argc; j++){
4535+
for (j = 0; j < argc; j++) {
45354536
if (is_hash[j]) {
45364537
if (rb_hash_stlike_lookup(argv[j], RARRAY_AREF(ary, i), NULL))
45374538
break;
@@ -4691,7 +4692,7 @@ rb_ary_union_multi(int argc, VALUE *argv, VALUE ary)
46914692
VALUE hash, ary_union;
46924693

46934694
sum = RARRAY_LEN(ary);
4694-
for (i = 0; i < argc; i++){
4695+
for (i = 0; i < argc; i++) {
46954696
argv[i] = to_ary(argv[i]);
46964697
sum += RARRAY_LEN(argv[i]);
46974698
}

compile.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3895,11 +3895,7 @@ static_literal_node_p(const NODE *node, const rb_iseq_t *iseq)
38953895
case NODE_FALSE:
38963896
return TRUE;
38973897
case NODE_STR:
3898-
if (ISEQ_COMPILE_DATA(iseq)->option->frozen_string_literal) {
3899-
return TRUE;
3900-
} else {
3901-
return FALSE;
3902-
}
3898+
return ISEQ_COMPILE_DATA(iseq)->option->frozen_string_literal;
39033899
default:
39043900
return FALSE;
39053901
}

cont.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,11 +875,13 @@ fiber_machine_stack_alloc(size_t size)
875875
machine_stack_cache_index--;
876876
machine_stack_cache[machine_stack_cache_index].ptr = NULL;
877877
machine_stack_cache[machine_stack_cache_index].size = 0;
878-
} else {
878+
}
879+
else {
879880
/* TODO handle multiple machine stack size */
880881
rb_bug("machine_stack_cache size is not canonicalized");
881882
}
882-
} else {
883+
}
884+
else {
883885
#ifdef _WIN32
884886
ptr = VirtualAlloc(0, size, MEM_COMMIT, PAGE_READWRITE);
885887

dir.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2061,7 +2061,8 @@ join_path_from_pattern(struct glob_pattern **beg)
20612061
path = GLOB_ALLOC_N(char, path_len + 1);
20622062
memcpy(path, str, path_len);
20632063
path[path_len] = '\0';
2064-
} else {
2064+
}
2065+
else {
20652066
size_t len = strlen(str);
20662067
char *tmp;
20672068
tmp = GLOB_REALLOC(path, path_len + len + 2);

iseq.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ rb_iseq_each_value(const rb_iseq_t *iseq, iseq_value_itr_t * func, void *data)
191191
#if OPT_DIRECT_THREADED_CODE || OPT_CALL_THREADED_CODE
192192
if (FL_TEST(iseq, ISEQ_TRANSLATED)) {
193193
translator = rb_vm_insn_addr2insn2;
194-
} else {
194+
}
195+
else {
195196
translator = rb_vm_insn_null_translator;
196197
}
197198
#else

mjit_worker.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,8 @@ exec_process(const char *path, char *const argv[])
619619
if (WIFEXITED(stat)) {
620620
exit_code = WEXITSTATUS(stat);
621621
break;
622-
} else if (WIFSIGNALED(stat)) {
622+
}
623+
else if (WIFSIGNALED(stat)) {
623624
exit_code = -1;
624625
break;
625626
}

range.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,9 +1472,11 @@ r_cover_range_p(VALUE range, VALUE beg, VALUE end, VALUE val)
14721472

14731473
if (EXCL(range) == EXCL(val)) {
14741474
return cmp_end >= 0;
1475-
} else if (EXCL(range)) {
1475+
}
1476+
else if (EXCL(range)) {
14761477
return cmp_end > 0;
1477-
} else if (cmp_end >= 0) {
1478+
}
1479+
else if (cmp_end >= 0) {
14781480
return TRUE;
14791481
}
14801482

vm_method.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,8 @@ check_definition_visibility(VALUE mod, int argc, VALUE *argv)
12961296

12971297
if (argc == 1) {
12981298
inc_super = 1;
1299-
} else {
1299+
}
1300+
else {
13001301
inc_super = RTEST(include_super);
13011302
if (!inc_super) {
13021303
lookup_mod = RCLASS_ORIGIN(mod);

0 commit comments

Comments
 (0)
0