ruby-changes:55297
From: nobu <ko1@a...>
Date: Wed, 10 Apr 2019 21:43:40 +0900 (JST)
Subject: [ruby-changes:55297] nobu:r67504 (trunk): Adjusted styles
nobu 2019-04-10 21:43:33 +0900 (Wed, 10 Apr 2019) New Revision: 67504 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67504 Log: Adjusted styles Modified files: trunk/array.c trunk/gc.c trunk/io.c trunk/mjit_worker.c trunk/vm_args.c Index: vm_args.c =================================================================== --- vm_args.c (revision 67503) +++ vm_args.c (revision 67504) @@ -36,7 +36,7 @@ enum arg_setup_type { https://github.com/ruby/ruby/blob/trunk/vm_args.c#L36 static inline void arg_rest_dup(struct args_info *args) { - if(!args->rest_dupped) { + if (!args->rest_dupped) { args->rest = rb_ary_dup(args->rest); args->rest_dupped = TRUE; } Index: array.c =================================================================== --- array.c (revision 67503) +++ array.c (revision 67504) @@ -1326,7 +1326,7 @@ rb_ary_shift_m(int argc, VALUE *argv, VA https://github.com/ruby/ruby/blob/trunk/array.c#L1326 MJIT_FUNC_EXPORTED VALUE rb_ary_behead(VALUE ary, long n) { - if(n<=0) return ary; + if (n<=0) return ary; rb_ary_modify_check(ary); if (ARY_SHARED_P(ary)) { Index: io.c =================================================================== --- io.c (revision 67503) +++ io.c (revision 67504) @@ -10996,7 +10996,8 @@ nogvl_fcopyfile(struct copy_stream_struc https://github.com/ruby/ruby/blob/trunk/io.c#L10996 return 1; } } - } else { + } + else { switch (errno) { case ENOTSUP: case EPERM: Index: gc.c =================================================================== --- gc.c (revision 67503) +++ gc.c (revision 67504) @@ -5479,7 +5479,7 @@ gc_verify_heap_pages_(rb_objspace_t *obj https://github.com/ruby/ruby/blob/trunk/gc.c#L5479 list_for_each(head, page, page_node) { unpoison_memory_region(&page->freelist, sizeof(RVALUE*), false); RVALUE *p = page->freelist; - while(p) { + while (p) { RVALUE *prev = p; unpoison_object((VALUE)p, false); if (BUILTIN_TYPE(p) != T_NONE) { Index: mjit_worker.c =================================================================== --- mjit_worker.c (revision 67503) +++ mjit_worker.c (revision 67504) @@ -1180,7 +1180,8 @@ mjit_copy_cache_from_main_thread(const r https://github.com/ruby/ruby/blob/trunk/mjit_worker.c#L1180 if (UNLIKELY(mjit_opts.wait)) { mjit_copy_job_handler((void *)job); - } else if (rb_workqueue_register(0, mjit_copy_job_handler, (void *)job)) { + } + else if (rb_workqueue_register(0, mjit_copy_job_handler, (void *)job)) { CRITICAL_SECTION_START(3, "in MJIT copy job wait"); // checking `stop_worker_p` too because `RUBY_VM_CHECK_INTS(ec)` may not // lush mjit_copy_job_handler when EC_EXEC_TAG() is not TAG_NONE, and then -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/