diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-30 06:36:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-30 06:36:11 +0000 |
commit | 66296d37745c42cf12e056a0c78a7831c4989c78 (patch) | |
tree | c755f4541a74506771ba52100baebc58e39b0748 /string.c | |
parent | c2310baf9aa8debf6849f4dcec769d008d30b5a5 (diff) | |
download | ruby-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |