diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-21 21:28:43 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-21 21:28:43 +0000 |
commit | 8cfab6e552c2476ce2b7ca4789597c0b6659a3fa (patch) | |
tree | 8d6c945cf4d7a4df45fd319613046ccab49f4b32 /vm_core.h | |
parent | 42be6919fccf4b862d271ff3d41c9721be1c0d0a (diff) | |
download | ruby-8cfab6e552c2476ce2b7ca4789597c0b6659a3fa.tar.gz |
* 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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |