ruby-changes:48684
From: ko1 <ko1@a...>
Date: Thu, 16 Nov 2017 16:43:30 +0900 (JST)
Subject: [ruby-changes:48684] ko1:r60800 (trunk): make a func static.
ko1 2017-11-16 16:43:27 +0900 (Thu, 16 Nov 2017) New Revision: 60800 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60800 Log: make a func static. * vm.c (rb_proc_create_from_captured): make this func static and renmae with vm_ prefix. Modified files: trunk/vm.c Index: vm.c =================================================================== --- vm.c (revision 60799) +++ vm.c (revision 60800) @@ -804,8 +804,8 @@ rb_iseq_local_variables(const rb_iseq_t https://github.com/ruby/ruby/blob/trunk/vm.c#L804 /* Proc */ -VALUE -rb_proc_create_from_captured(VALUE klass, +static VALUE +vm_proc_create_from_captured(VALUE klass, const struct rb_captured_block *captured, enum rb_block_type block_type, int8_t safe_level, int8_t is_from_method, int8_t is_lambda) @@ -878,7 +878,7 @@ rb_vm_make_proc_lambda(const rb_executio https://github.com/ruby/ruby/blob/trunk/vm.c#L878 VM_ASSERT(imemo_type_p(captured->code.val, imemo_iseq) || imemo_type_p(captured->code.val, imemo_ifunc)); - procval = rb_proc_create_from_captured(klass, captured, + procval = vm_proc_create_from_captured(klass, captured, imemo_type(captured->code.val) == imemo_iseq ? block_type_iseq : block_type_ifunc, (int8_t)ec->safe_level, FALSE, is_lambda); return procval; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/