summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-17 08:48:52 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-17 08:48:52 +0000
commitdbee678630736a5d873cde1f262bf2cfc87e8dfe (patch)
tree2658d8158be06293836cb8338131a8cc73a1ed0e /eval.c
parentca46eab09073c2d91bb21939b32aa6d767dafa36 (diff)
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@11541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index b1cc31bca3..63fdefbde9 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;