summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-21 21:28:43 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-21 21:28:43 (GMT)
commit948bd807c3c564317e1c2e8d66ecaf85c49dead7 (patch)
tree8d6c945cf4d7a4df45fd319613046ccab49f4b32 /vm_core.h
parentc5618920ed9cdfafc539a7b43f0911fbdff7bd19 (diff)
* vm_core.h: constify rb_call_info_t::blockiseq and rb_iseq_t::iseq.
* vm.c, vm_insnhelper.c: catch up this fix. * iseq.c (iseq_data_to_ary): constify the first iseq parameter. * vm_insnhelper.c (vm_make_proc_with_iseq): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_core.h b/vm_core.h
index d032307..daf801f 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -201,7 +201,7 @@ typedef struct rb_call_info_struct {
unsigned int flag;
int orig_argc;
- rb_iseq_t *blockiseq;
+ const rb_iseq_t *blockiseq;
rb_call_info_kw_arg_t *kw_arg;
/* inline cache: keys */
@@ -565,7 +565,7 @@ typedef struct rb_control_frame_struct {
typedef struct rb_block_struct {
VALUE self; /* share with method frame if it's only block */
VALUE *ep; /* share with method frame if it's only block */
- rb_iseq_t *iseq;
+ const rb_iseq_t *iseq;
VALUE proc;
} rb_block_t;