From 66296d37745c42cf12e056a0c78a7831c4989c78 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 30 Sep 2015 06:36:11 +0000 Subject: proc.c: include symbol name * proc.c (proc_to_s): include the original symbol name in string form. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index 728676c159..5352a6aab1 100644 --- a/string.c +++ b/string.c @@ -8915,8 +8915,8 @@ sym_to_sym(VALUE sym) return sym; } -static VALUE -sym_call(VALUE args, VALUE sym, int argc, VALUE *argv, VALUE passed_proc) +VALUE +rb_sym_proc_call(VALUE args, VALUE sym, int argc, VALUE *argv, VALUE passed_proc) { VALUE obj; @@ -8959,7 +8959,7 @@ sym_to_proc(VALUE sym) return aryp[index + 1]; } else { - proc = rb_proc_new(sym_call, (VALUE)id); + proc = rb_proc_new(rb_sym_proc_call, (VALUE)id); rb_block_clear_env_self(proc); aryp[index] = sym; aryp[index + 1] = proc; -- cgit v1.2.3