From a61ea1af99fafbf063b0c5b2784f4d07574eb8ed Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 17 Jul 2003 05:23:54 +0000 Subject: * eval.c (ruby_init): set ruby_running to true after initialization. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 820b1ca5c..1225349fc 100644 --- a/eval.c +++ b/eval.c @@ -365,7 +365,6 @@ rb_get_method_body(klassp, idp, noexp) if (ruby_running) { /* store in cache */ - if (BUILTIN_TYPE(origin) == T_ICLASS) origin = RBASIC(origin)->klass; ent = cache + EXPR1(klass, id); ent->klass = klass; ent->noex = body->nd_noex; @@ -1200,6 +1199,7 @@ ruby_init() } POP_SCOPE(); ruby_scope = top_scope; + ruby_running = 1; } static VALUE @@ -1365,7 +1365,6 @@ ruby_exec() volatile NODE *tmp; Init_stack((void*)&tmp); - ruby_running = 1; PUSH_TAG(PROT_NONE); PUSH_ITER(ITER_NOT); /* default visibility is private at toplevel */ -- cgit