Skip to content

Commit

Permalink
* iseq.c (rb_iseq_first_lineno): constified.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Mar 16, 2012
1 parent 29f7300 commit e2ca783
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Fri Mar 16 11:59:56 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>

* iseq.c (rb_iseq_first_lineno): constified.

Fri Mar 16 11:20:07 2012 Shugo Maeda <shugo@ruby-lang.org>

* enumerator.c (lazy_take): don't enumerate an extra value.
Expand Down
2 changes: 1 addition & 1 deletion iseq.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ iseq_to_a(VALUE self)
}

int
rb_iseq_first_lineno(rb_iseq_t *iseq)
rb_iseq_first_lineno(const rb_iseq_t *iseq)
{
return FIX2INT(iseq->line_no);
}
Expand Down
2 changes: 1 addition & 1 deletion vm_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE filepath, VALUE l
VALUE rb_iseq_disasm(VALUE self);
int rb_iseq_disasm_insn(VALUE str, VALUE *iseqval, size_t pos, rb_iseq_t *iseq, VALUE child);
const char *ruby_node_name(int node);
int rb_iseq_first_lineno(rb_iseq_t *iseq);
int rb_iseq_first_lineno(const rb_iseq_t *iseq);

RUBY_EXTERN VALUE rb_cISeq;
RUBY_EXTERN VALUE rb_cRubyVM;
Expand Down

0 comments on commit e2ca783

Please sign in to comment.