From e2ca7837d1d8afbbcb2387d1c22a016e799024e4 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 16 Mar 2012 03:00:00 +0000 Subject: [PATCH] * iseq.c (rb_iseq_first_lineno): constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ iseq.c | 2 +- vm_core.h | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f677791c3a..62bd6a084b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Mar 16 11:59:56 2012 Nobuyoshi Nakada + + * iseq.c (rb_iseq_first_lineno): constified. + Fri Mar 16 11:20:07 2012 Shugo Maeda * enumerator.c (lazy_take): don't enumerate an extra value. diff --git a/iseq.c b/iseq.c index fd148dc1a2..ec9ac5fedd 100644 --- a/iseq.c +++ b/iseq.c @@ -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); } diff --git a/vm_core.h b/vm_core.h index 9b72839bd1..a835e23005 100644 --- a/vm_core.h +++ b/vm_core.h @@ -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;