summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-16 08:21:49 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-16 08:21:49 (GMT)
commitc7124d811fbfcbc02a7d1e5cf0d79cb62de73016 (patch)
treef0e1682104c3119f26fc348c6bfb84f56cce6cd4 /vm.c
parent136b07aec8118dabb3b394d1e8b1a4c24d022b4a (diff)
vm.c, vm_core.h: constify VM_CF_LEP, VM_CF_PREV_EP, VM_CF_BLOCK_PTR
and rb_vm_control_frame_block_ptr. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vm.c b/vm.c
index 80b3bbe..3aaf1ea 100644
--- a/vm.c
+++ b/vm.c
@@ -55,26 +55,26 @@ rb_vm_ep_local_ep(VALUE *ep)
}
static inline VALUE *
-VM_CF_LEP(rb_control_frame_t *cfp)
+VM_CF_LEP(const rb_control_frame_t * const cfp)
{
return VM_EP_LEP(cfp->ep);
}
static inline VALUE *
-VM_CF_PREV_EP(rb_control_frame_t * cfp)
+VM_CF_PREV_EP(const rb_control_frame_t * const cfp)
{
return VM_EP_PREV_EP(cfp->ep);
}
static inline rb_block_t *
-VM_CF_BLOCK_PTR(rb_control_frame_t *cfp)
+VM_CF_BLOCK_PTR(const rb_control_frame_t * const cfp)
{
VALUE *ep = VM_CF_LEP(cfp);
return VM_EP_BLOCK_PTR(ep);
}
rb_block_t *
-rb_vm_control_frame_block_ptr(rb_control_frame_t *cfp)
+rb_vm_control_frame_block_ptr(const rb_control_frame_t *cfp)
{
return VM_CF_BLOCK_PTR(cfp);
}