ruby-changes:38506
From: ko1 <ko1@a...>
Date: Thu, 21 May 2015 16:55:00 +0900 (JST)
Subject: [ruby-changes:38506] ko1:r50587 (trunk): * proc.c (rb_method_get_iseq): rename to rb_method_iseq.
ko1 2015-05-21 16:54:44 +0900 (Thu, 21 May 2015) New Revision: 50587 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50587 Log: * proc.c (rb_method_get_iseq): rename to rb_method_iseq. * iseq.c: catch up this fix. Modified files: trunk/ChangeLog trunk/iseq.c trunk/proc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 50586) +++ ChangeLog (revision 50587) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu May 21 16:52:44 2015 Koichi Sasada <ko1@a...> + + * proc.c (rb_method_get_iseq): rename to rb_method_iseq. + + * iseq.c: catch up this fix. + Thu May 21 15:41:45 2015 SHIBATA Hiroshi <hsbt@r...> * lib/net/telnet.rb: gemify net-telnet. Index: iseq.c =================================================================== --- iseq.c (revision 50586) +++ iseq.c (revision 50587) @@ -1520,7 +1520,7 @@ iseq_s_of(VALUE klass, VALUE body) https://github.com/ruby/ruby/blob/trunk/iseq.c#L1520 ret = iseq->self; } } - else if ((iseq = rb_method_get_iseq(body)) != 0) { + else if ((iseq = rb_method_iseq(body)) != 0) { ret = iseq->self; } return ret; Index: proc.c =================================================================== --- proc.c (revision 50586) +++ proc.c (revision 50587) @@ -924,7 +924,7 @@ rb_proc_get_iseq(VALUE self, int *is_pro https://github.com/ruby/ruby/blob/trunk/proc.c#L924 iseq = 0; if (IS_METHOD_PROC_ISEQ(ifunc)) { /* method(:foo).to_proc */ - iseq = rb_method_get_iseq((VALUE)ifunc->data); + iseq = rb_method_iseq((VALUE)ifunc->data); if (is_proc) *is_proc = 0; } } @@ -2216,7 +2216,7 @@ method_get_cref(rb_method_definition_t * https://github.com/ruby/ruby/blob/trunk/proc.c#L2216 rb_iseq_t * -rb_method_get_iseq(VALUE method) +rb_method_iseq(VALUE method) { return method_get_iseq(method_get_def(method)); } @@ -2277,7 +2277,7 @@ rb_method_location(VALUE method) https://github.com/ruby/ruby/blob/trunk/proc.c#L2277 static VALUE rb_method_parameters(VALUE method) { - rb_iseq_t *iseq = rb_method_get_iseq(method); + rb_iseq_t *iseq = rb_method_iseq(method); if (!iseq) { return unnamed_parameters(method_arity(method)); } @@ -2506,7 +2506,7 @@ proc_binding(VALUE self) https://github.com/ruby/ruby/blob/trunk/proc.c#L2506 if (!IS_METHOD_PROC_ISEQ(iseq)) { rb_raise(rb_eArgError, "Can't create Binding from C level Proc"); } - iseq = rb_method_get_iseq((VALUE)((struct vm_ifunc *)iseq)->data); + iseq = rb_method_iseq((VALUE)((struct vm_ifunc *)iseq)->data); GetEnvPtr(envval, env); if (iseq && env->local_size < iseq->local_size) { int prev_local_size = env->local_size; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/