From 141292aa27edbd2650cfdd52ab7f3ec0af7c74df Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 19 May 2008 03:08:50 +0000 Subject: * vm.c, insns.def, eval.c, vm_insnhelper.c: fix CREF handling. VM value stack frame of block contains cref information. (dfp[-1] points CREF) * compile.c, eval_intern.h, eval_method.c, load.c, proc.c, vm_dump.h, vm_core.h: ditto. * include/ruby/ruby.h, gc.c: remove T_VALUES because of above changes. * bootstraptest/test_eval.rb, test_knownbug.rb: move solved test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- load.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'load.c') diff --git a/load.c b/load.c index 154572d80..f91768c31 100644 --- a/load.c +++ b/load.c @@ -650,7 +650,7 @@ rb_mod_autoload_p(VALUE mod, VALUE sym) static VALUE rb_f_autoload(VALUE obj, VALUE sym, VALUE file) { - VALUE klass = ruby_cbase(); + VALUE klass = rb_vm_cbase(); if (NIL_P(klass)) { rb_raise(rb_eTypeError, "Can not set autoload on singleton class"); } @@ -664,8 +664,8 @@ rb_f_autoload(VALUE obj, VALUE sym, VALUE file) static VALUE rb_f_autoload_p(VALUE obj, VALUE sym) { - /* use ruby_cbase() as same as rb_f_autoload. */ - VALUE klass = ruby_cbase(); + /* use rb_vm_cbase() as same as rb_f_autoload. */ + VALUE klass = rb_vm_cbase(); if (NIL_P(klass)) { return Qnil; } -- cgit