[ruby-cvs:66190] ko1:r59016 (trunk): rename functions and clean parameters.
ko1 at ruby-lang.org
ko1 at ruby-lang.org
Mon Jun 5 15:15:28 JST 2017
ko1 2017-06-05 15:15:28 +0900 (Mon, 05 Jun 2017)
New Revision: 59016
https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59016
Log:
rename functions and clean parameters.
* internal.h (rb_yield_lambda): rename to rb_yield_force_blockarg()
because this function prohibt lambda arg setup (strict setup).
* vm.c (invoke_iseq_block_from_c): remove splattable argument because
it is not used.
* vm.c (invoke_block_from_c_splattable): rename to invoke_block_from_c_bh()
because `splattable` doesn't make sense on current this function.
Also accept `force_blockarg' parameter instead of `splattable` parameter.
It is more clear.
* vm.c (invoke_block_from_c_unsplattable): rename to
invoke_block_from_c_proc() and accept `proc` instead of `block'.
This function is used only by proc block invocation.
Modified files:
trunk/enum.c
trunk/internal.h
trunk/vm.c
trunk/vm_eval.c
More information about the ruby-cvs
mailing list