summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-17 05:23:54 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-17 05:23:54 +0000
commit46bf6217378e0dca4ff56446cf7233023f21778a (patch)
tree034d9e3ed468898636d9e4fd68e14d083745cccc /eval.c
parent06f82d38838e3d588c96e12bf492b685ff1d8322 (diff)
* eval.c (ruby_init): set ruby_running to true after
initialization. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index 820b1ca..1225349 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 */