summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-27 08:10:04 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-27 08:10:04 (GMT)
commitca6b174078fa15f33655be704d9409fdbc4f9929 (patch)
tree56a96b5dd1c09b83efa621abfb8ed3a4a7581ec4 /vm.c
parent689df4ae2a8ee6606c13ac9173ffce85aa1b06b7 (diff)
* vm_core.h: define vm_svar_index.
* vm_insnhelper.c, vm.c, compile.c: use vm_svar_index names. * iseq.h: remove DEFAULT_SPECIAL_VAR_COUNT. use VM_SVAR_FLIPFLOP_START instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49772 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 3aaf1ea..b84ba78 100644
--- a/vm.c
+++ b/vm.c
@@ -943,25 +943,25 @@ vm_svar_set(VALUE key, VALUE val)
VALUE
rb_backref_get(void)
{
- return vm_svar_get(1);
+ return vm_svar_get(VM_SVAR_BACKREF);
}
void
rb_backref_set(VALUE val)
{
- vm_svar_set(1, val);
+ vm_svar_set(VM_SVAR_BACKREF, val);
}
VALUE
rb_lastline_get(void)
{
- return vm_svar_get(0);
+ return vm_svar_get(VM_SVAR_LASTLINE);
}
void
rb_lastline_set(VALUE val)
{
- vm_svar_set(0, val);
+ vm_svar_set(VM_SVAR_LASTLINE, val);
}
/* misc */