From 0c71be2c1e92e3672d7e6f016d42b6d291bb30f5 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 17 Jan 2007 08:48:52 +0000 Subject: * some refactoring around yarvcore and proc. * eval_proc.c: renamed to proc.c. * common.mk: ditto. * yarvcore.h, yarvcore.c: rename or remove some global variables removed: mYarvCore, mYarvInsns renamed: cYarvISeq -> rb_cISeq, cYarvProc -> rb_cProc, cYarvBinding -> rb_cBinding ::YarvCore module is removed and ::YarvCore::VM class becomes ::VM. And change/remove some functions which added with YARV. * compile.c: ditto. * eval.c: ditto. * iseq.c: ditto. * vm.c: ditto. * inits.c: rename Init_yarvcore to Init_vm. * yarvcore.c, proc.c: move some functions and initialization from yarvcore.c to proc.c. * intern.h, proc.c: add global function rb_binding_new(void). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index b1cc31bca..63fdefbde 100644 --- a/eval.c +++ b/eval.c @@ -18,7 +18,7 @@ VALUE rb_cProc; VALUE rb_cBinding; VALUE proc_invoke(VALUE, VALUE, VALUE, VALUE); -VALUE rb_f_binding(VALUE); +VALUE rb_binding_new(); VALUE rb_f_block_given_p(void); @@ -660,7 +660,7 @@ call_trace_func(rb_event_t event, NODE *node, VALUE self, ID id, VALUE klass) srcfile, INT2FIX(ruby_sourceline), id ? ID2SYM(id) : Qnil, - self ? rb_f_binding(self) : Qnil, + self ? rb_binding_new() : Qnil, klass ? klass : Qnil), Qundef, 0); } if (raised) @@ -1934,7 +1934,8 @@ eval(VALUE self, VALUE src, VALUE scope, char *file, int line) VALUE iseqval; if (scope != Qnil) { - if (CLASS_OF(scope) == cYarvBinding) { + + if (CLASS_OF(scope) == rb_cBinding) { GetBindingPtr(scope, bind); envval = bind->env; stored_cref_stack = bind->cref_stack; -- cgit