ruby-changes:38492
From: ko1 <ko1@a...>
Date: Thu, 21 May 2015 11:00:48 +0900 (JST)
Subject: [ruby-changes:38492] ko1:r50573 (trunk): * proc.c (method_proc): rename to method_to_proc.
ko1 2015-05-21 11:00:31 +0900 (Thu, 21 May 2015) New Revision: 50573 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50573 Log: * proc.c (method_proc): rename to method_to_proc. Modified files: trunk/ChangeLog trunk/proc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 50572) +++ ChangeLog (revision 50573) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu May 21 10:59:43 2015 Koichi Sasada <ko1@a...> + + * proc.c (method_proc): rename to method_to_proc. + Thu May 21 10:51:54 2015 Jake Worth <jakeworth82@g...> * io.c (rb_f_select): [DOC] Fixes for grammar and style. Index: proc.c =================================================================== --- proc.c (revision 50572) +++ proc.c (revision 50573) @@ -2397,7 +2397,7 @@ rb_proc_new( https://github.com/ruby/ruby/blob/trunk/proc.c#L2397 */ static VALUE -method_proc(VALUE method) +method_to_proc(VALUE method) { VALUE procval; struct METHOD *meth; @@ -2679,7 +2679,7 @@ proc_curry(int argc, const VALUE *argv, https://github.com/ruby/ruby/blob/trunk/proc.c#L2679 static VALUE rb_method_curry(int argc, const VALUE *argv, VALUE self) { - VALUE proc = method_proc(self); + VALUE proc = method_to_proc(self); return proc_curry(argc, argv, proc); } @@ -2806,7 +2806,7 @@ Init_Proc(void) https://github.com/ruby/ruby/blob/trunk/proc.c#L2806 rb_define_method(rb_cMethod, "arity", method_arity_m, 0); rb_define_method(rb_cMethod, "inspect", method_inspect, 0); rb_define_method(rb_cMethod, "to_s", method_inspect, 0); - rb_define_method(rb_cMethod, "to_proc", method_proc, 0); + rb_define_method(rb_cMethod, "to_proc", method_to_proc, 0); rb_define_method(rb_cMethod, "receiver", method_receiver, 0); rb_define_method(rb_cMethod, "name", method_name, 0); rb_define_method(rb_cMethod, "original_name", method_original_name, 0); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/