summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-07 05:12:08 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-07 05:12:08 +0000
commit12f368d6a48d7eb35a9c802d1ae4824b876f7c74 (patch)
tree21ad243d8a68f905cb34fa5e7c41531ab9485df5 /proc.c
parent72db853bb825775b65e20af2b610c557426ed768 (diff)
* iseq.c, internal.h: change to public (but internal) functions
* VALUE rb_iseq_path(VALUE iseqval); * VALUE rb_iseq_absolute_path(VALUE iseqval); * VALUE rb_iseq_label(VALUE iseqval); * VALUE rb_iseq_base_label(VALUE iseqval); * VALUE rb_iseq_first_lineno(VALUE iseqval); And new (temporary) function: * VALUE rb_iseq_klass(VALUE iseqval); * iseq.c. vm_core.h (int rb_iseq_first_lineno): remove function `int rb_iseq_first_lineno(const rb_iseq_t *iseq)'. Use `VALUE rb_iseq_first_lineno(VALUE iseqval)' instead. * proc.c. vm_insnhelper.c, vm_method.c: catch up this change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/proc.c b/proc.c
index 9038098529..e376ea5db2 100644
--- a/proc.c
+++ b/proc.c
@@ -924,7 +924,7 @@ iseq_location(rb_iseq_t *iseq)
if (!iseq) return Qnil;
loc[0] = iseq->location.path;
if (iseq->line_info_table) {
- loc[1] = INT2FIX(rb_iseq_first_lineno(iseq));
+ loc[1] = INT2FIX(rb_iseq_first_lineno(iseq->self));
}
else {
loc[1] = Qnil;
@@ -1038,7 +1038,7 @@ proc_to_s(VALUE self)
int first_lineno = 0;
if (iseq->line_info_table) {
- first_lineno = rb_iseq_first_lineno(iseq);
+ first_lineno = rb_iseq_first_lineno(iseq->self);
}
str = rb_sprintf("#<%s:%p@%"PRIsVALUE":%d%s>", cname, (void *)self,
iseq->location.path, first_lineno, is_lambda);
@@ -2382,7 +2382,7 @@ proc_binding(VALUE self)
bind->env = proc->envval;
if (RUBY_VM_NORMAL_ISEQ_P(proc->block.iseq)) {
bind->path = proc->block.iseq->location.path;
- bind->first_lineno = rb_iseq_first_lineno(proc->block.iseq);
+ bind->first_lineno = rb_iseq_first_lineno(proc->block.iseq->self);
}
else {
bind->path = Qnil;