diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-16 03:00:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-16 03:00:00 +0000 |
commit | e2ca7837d1d8afbbcb2387d1c22a016e799024e4 (patch) | |
tree | d4d4080f591c8486d9f1a2da10aa535a15b09bef | |
parent | 29f73009ca934cfa7b51d1de4d22933ab56dc602 (diff) | |
download | ruby-e2ca7837d1d8afbbcb2387d1c22a016e799024e4.tar.gz |
* iseq.c (rb_iseq_first_lineno): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | iseq.c | 2 | ||||
-rw-r--r-- | vm_core.h | 2 |
3 files changed, 6 insertions, 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> * enumerator.c (lazy_take): don't enumerate an extra value. @@ -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); } @@ -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; |