aboutsummaryrefslogtreecommitdiffstats
path: root/variable.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-31 01:02:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-31 01:02:26 +0000
commit43886f3804567d8330eb3797d40065e0e7001cf5 (patch)
tree2ecaaf2cb405cdf4bdcbf420966fc3213c44a322 /variable.c
parent4726e6349ace31e28460725ef542b481fc2ea3ca (diff)
downloadruby-43886f3804567d8330eb3797d40065e0e7001cf5.tar.gz
use rb_source_loc and rb_source_location
* error.c, eval.c, eval_error.c, gc.c, variable.c, vm.c, vm_eval.c, vm_trace.c: use rb_source_loc/rb_source_location instead of combination of rb_sourcefile/rb_sourcefilename and rb_sourceline. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/variable.c b/variable.c
index 49853b64e9..048ddde069 100644
--- a/variable.c
+++ b/variable.c
@@ -2636,9 +2636,8 @@ setup_const_entry(rb_const_entry_t *ce, VALUE klass, VALUE val,
rb_const_flag_t visibility)
{
ce->flag = visibility;
- ce->line = rb_sourceline();
RB_OBJ_WRITE(klass, &ce->value, val);
- RB_OBJ_WRITE(klass, &ce->file, rb_sourcefilename());
+ RB_OBJ_WRITE(klass, &ce->file, rb_source_location(&ce->line));
}
void