aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-30 06:36:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-30 06:36:11 +0000
commit66296d37745c42cf12e056a0c78a7831c4989c78 (patch)
treec755f4541a74506771ba52100baebc58e39b0748 /string.c
parentc2310baf9aa8debf6849f4dcec769d008d30b5a5 (diff)
downloadruby-66296d37745c42cf12e056a0c78a7831c4989c78.tar.gz
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
Diffstat (limited to 'string.c')
-rw-r--r--string.c6
1 files changed, 3 insertions, 3 deletions
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;