summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-21 21:41:04 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-21 21:41:04 (GMT)
commit331fb4a2b3576ee364dc67f212b3c9c759fafdd8 (patch)
tree2aa54ede5ceee09162d3216364f1b48b1aeb3afe /vm_core.h
parent684c449c361ab8c29ddca6d7e9a77fb7ea82864c (diff)
* vm_core.h: constify rb_call_info_t::kw_arg,
rb_control_frame_t::iseq and rb_control_frame_t::block_iseq. * iseq.c (iseq_free): catch up this fix. * vm.c: ditto. * vm_dump.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_core.h b/vm_core.h
index daf801f..c0c119a 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -202,7 +202,7 @@ typedef struct rb_call_info_struct {
unsigned int flag;
int orig_argc;
const rb_iseq_t *blockiseq;
- rb_call_info_kw_arg_t *kw_arg;
+ const rb_call_info_kw_arg_t *kw_arg;
/* inline cache: keys */
rb_serial_t method_state;
@@ -550,11 +550,11 @@ typedef struct rb_vm_struct {
typedef struct rb_control_frame_struct {
VALUE *pc; /* cfp[0] */
VALUE *sp; /* cfp[1] */
- rb_iseq_t *iseq; /* cfp[2] */
+ const rb_iseq_t *iseq; /* cfp[2] */
VALUE flag; /* cfp[3] */
VALUE self; /* cfp[4] / block[0] */
VALUE *ep; /* cfp[5] / block[1] */
- rb_iseq_t *block_iseq; /* cfp[6] / block[2] */
+ const rb_iseq_t *block_iseq;/* cfp[6] / block[2] */
VALUE proc; /* cfp[7] / block[3] */
#if VM_DEBUG_BP_CHECK