From 876bfc6b4ee6c0ddacbeff328dc428889d789a6b Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 3 Jul 2014 03:38:10 +0000 Subject: Init functions don't need ID caches git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- variable.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'variable.c') diff --git a/variable.c b/variable.c index dac12aba9e..34528e87fc 100644 --- a/variable.c +++ b/variable.c @@ -27,13 +27,13 @@ void Init_var_tables(void) { rb_global_tbl = st_init_numtable(); - CONST_ID(autoload, "__autoload__"); + autoload = rb_intern_const("__autoload__"); /* __classpath__: fully qualified class path */ - CONST_ID(classpath, "__classpath__"); + classpath = rb_intern_const("__classpath__"); /* __tmp_classpath__: temporary class path which contains anonymous names */ - CONST_ID(tmp_classpath, "__tmp_classpath__"); + tmp_classpath = rb_intern_const("__tmp_classpath__"); /* __classid__: name given to class/module under an anonymous namespace */ - CONST_ID(classid, "__classid__"); + classid = rb_intern_const("__classid__"); } struct fc_result { -- cgit v1.2.3