summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-16 13:13:50 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-16 13:13:50 (GMT)
commitc3e8cca95040dbae915cad793ccb72f56021bd4a (patch)
tree8204dd2d27e0082b88d9975507b07f85fc050de1 /iseq.c
parentf242e17f9b011e1e78cf64eabf1d39d67a7ca274 (diff)
* vm_core.h: constify rb_iseq_t::parent_iseq.
rb_iseq_t::local_iseq is not constant data because local_iseq::flip_cnt can be modified (commentted). * compile.c: catch up this fix. * iseq.c: ditto. * vm_insnhelper.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/iseq.c b/iseq.c
index e8440de..eee0148 100644
--- a/iseq.c
+++ b/iseq.c
@@ -102,7 +102,7 @@ iseq_free(void *ptr)
static void
iseq_mark(void *ptr)
{
- rb_iseq_t *iseq = ptr;
+ const rb_iseq_t *iseq = ptr;
RUBY_MARK_ENTER("iseq");
@@ -915,7 +915,7 @@ rb_iseq_base_label(VALUE self)
VALUE
rb_iseq_first_lineno(VALUE self)
{
- rb_iseq_t *iseq;
+ const rb_iseq_t *iseq;
GetISeqPtr(self, iseq);
return iseq->location.first_lineno;
}
@@ -923,7 +923,7 @@ rb_iseq_first_lineno(VALUE self)
VALUE
rb_iseq_method_name(VALUE self)
{
- rb_iseq_t *iseq, *local_iseq;
+ const rb_iseq_t *iseq, *local_iseq;
GetISeqPtr(self, iseq);
local_iseq = iseq->local_iseq;
if (local_iseq->type == ISEQ_TYPE_METHOD) {