mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* iseq.c (rb_iseq_first_lineno): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
29f73009ca
commit
e2ca7837d1
3 changed files with 6 additions and 2 deletions
|
@ -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>
|
Fri Mar 16 11:20:07 2012 Shugo Maeda <shugo@ruby-lang.org>
|
||||||
|
|
||||||
* enumerator.c (lazy_take): don't enumerate an extra value.
|
* enumerator.c (lazy_take): don't enumerate an extra value.
|
||||||
|
|
2
iseq.c
2
iseq.c
|
@ -675,7 +675,7 @@ iseq_to_a(VALUE self)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
rb_iseq_first_lineno(rb_iseq_t *iseq)
|
rb_iseq_first_lineno(const rb_iseq_t *iseq)
|
||||||
{
|
{
|
||||||
return FIX2INT(iseq->line_no);
|
return FIX2INT(iseq->line_no);
|
||||||
}
|
}
|
||||||
|
|
|
@ -510,7 +510,7 @@ VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE filepath, VALUE l
|
||||||
VALUE rb_iseq_disasm(VALUE self);
|
VALUE rb_iseq_disasm(VALUE self);
|
||||||
int rb_iseq_disasm_insn(VALUE str, VALUE *iseqval, size_t pos, rb_iseq_t *iseq, VALUE child);
|
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);
|
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_cISeq;
|
||||||
RUBY_EXTERN VALUE rb_cRubyVM;
|
RUBY_EXTERN VALUE rb_cRubyVM;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue