ruby-changes:39976
From: nobu <ko1@a...>
Date: Tue, 6 Oct 2015 16:36:04 +0900 (JST)
Subject: [ruby-changes:39976] nobu:r52057 (trunk): * string.c (rb_sym_to_proc): rename
nobu 2015-10-06 16:35:52 +0900 (Tue, 06 Oct 2015) New Revision: 52057 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52057 Log: * string.c (rb_sym_to_proc): rename Modified files: trunk/string.c Index: string.c =================================================================== --- string.c (revision 52056) +++ string.c (revision 52057) @@ -8946,7 +8946,6 @@ rb_sym_proc_call(VALUE args, VALUE sym, https://github.com/ruby/ruby/blob/trunk/string.c#L8946 return rb_funcall_with_block(obj, (ID)sym, argc - 1, argv + 1, passed_proc); } -#define sym_to_proc rb_sym_to_proc /* * call-seq: * sym.to_proc @@ -8957,7 +8956,7 @@ rb_sym_proc_call(VALUE args, VALUE sym, https://github.com/ruby/ruby/blob/trunk/string.c#L8956 */ VALUE -sym_to_proc(VALUE sym) +rb_sym_to_proc(VALUE sym) { static VALUE sym_proc_cache = Qfalse; enum {SYM_PROC_CACHE_SIZE = 67}; @@ -9367,7 +9366,7 @@ Init_String(void) https://github.com/ruby/ruby/blob/trunk/string.c#L9366 rb_define_method(rb_cSymbol, "id2name", rb_sym_to_s, 0); rb_define_method(rb_cSymbol, "intern", sym_to_sym, 0); rb_define_method(rb_cSymbol, "to_sym", sym_to_sym, 0); - rb_define_method(rb_cSymbol, "to_proc", sym_to_proc, 0); + rb_define_method(rb_cSymbol, "to_proc", rb_sym_to_proc, 0); rb_define_method(rb_cSymbol, "succ", sym_succ, 0); rb_define_method(rb_cSymbol, "next", sym_succ, 0); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/