From 5a647a3f5fd011f8558c7f9e90cd65e70e73eb40 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 9 Jun 2008 09:25:32 +0000 Subject: * include/ruby/ruby.h (CONST_ID): constant ID cache for non-gcc. * *.c: no cache in init functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index f6c3a43f80..a8945ea0d7 100644 --- a/ruby.c +++ b/ruby.c @@ -452,9 +452,10 @@ static void require_libraries(struct cmdline_options *opt) { VALUE list = opt->req_list; - ID require = rb_intern("require"); + ID require; Init_ext(); /* should be called here for some reason :-( */ + CONST_ID(require, "require"); while (list && RARRAY_LEN(list) > 0) { VALUE feature = rb_ary_shift(list); rb_funcall2(rb_vm_top_self(), require, 1, &feature); -- cgit v1.2.3