summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-19 15:12:45 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-19 15:12:45 (GMT)
commit88790710301e36708e875c8cf4848bfc8936556e (patch)
tree8ad0dbab4ae6b40002867a534af4e1dfcb725b7b /proc.c
parenta2bf609304a85a327824516be8ae614c11c14d37 (diff)
proc.c: remove old macro
* proc.c (proc_get_iseq): remove and expand old name macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/proc.c b/proc.c
index b8b2145..d8ee767 100644
--- a/proc.c
+++ b/proc.c
@@ -969,8 +969,6 @@ rb_block_arity(void)
return max != UNLIMITED_ARGUMENTS ? min : -min-1;
}
-#define get_proc_iseq rb_proc_get_iseq
-
const rb_iseq_t *
rb_proc_get_iseq(VALUE self, int *is_proc)
{
@@ -1028,7 +1026,7 @@ iseq_location(const rb_iseq_t *iseq)
VALUE
rb_proc_location(VALUE self)
{
- return iseq_location(get_proc_iseq(self, 0));
+ return iseq_location(rb_get_proc_iseq(self, 0));
}
static VALUE
@@ -1064,7 +1062,7 @@ static VALUE
rb_proc_parameters(VALUE self)
{
int is_proc;
- const rb_iseq_t *iseq = get_proc_iseq(self, &is_proc);
+ const rb_iseq_t *iseq = rb_get_proc_iseq(self, &is_proc);
if (!iseq) {
return unnamed_parameters(rb_proc_arity(self));
}
@@ -2294,7 +2292,7 @@ method_def_iseq(const rb_method_definition_t *def)
case VM_METHOD_TYPE_ISEQ:
return rb_iseq_check(def->body.iseq.iseqptr);
case VM_METHOD_TYPE_BMETHOD:
- return get_proc_iseq(def->body.proc, 0);
+ return rb_get_proc_iseq(def->body.proc, 0);
case VM_METHOD_TYPE_ALIAS:
return method_def_iseq(def->body.alias.original_me->def);
case VM_METHOD_TYPE_CFUNC: