diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-26 22:51:33 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-26 22:51:33 +0000 |
commit | 8a1b1c2b41b475cc40a8013623b5b6fe5381d6da (patch) | |
tree | 7fdb3d79de934510585bc5572642eaefb8e1471e /yarvcore.c | |
parent | 3623df9bc68adf445814f2d1ec5bc81e7e0450bb (diff) | |
download | ruby-8a1b1c2b41b475cc40a8013623b5b6fe5381d6da.tar.gz |
* yarvcore.h, vm.h: rename th_invoke_yield() to th_yield().
* blockinlining.c: ditto.
* eval.c: ditto.
* vm.c, insns.def: rename th_invoke_yield_cfunc()
to th_yield_with_cfunc().
* yarvcore.h, yarvcore.c: rename theYarvVM to ruby_current_vm and
yarvCurrentThread to ruby_current_thread. remove yarvVMArray.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'yarvcore.c')
-rw-r--r-- | yarvcore.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/yarvcore.c b/yarvcore.c index bfc53fc6b3..b8f06ab6d8 100644 --- a/yarvcore.c +++ b/yarvcore.c @@ -71,9 +71,9 @@ ID id__send_bang; /* YARVCore */ /************/ -rb_thread_t *yarvCurrentThread = 0; -rb_vm_t *theYarvVM = 0; -static VALUE yarvVMArray = Qnil; +rb_thread_t *ruby_current_thread = 0; +rb_vm_t *ruby_current_vm = 0; +static VALUE ruby_vm_list = Qnil; RUBY_EXTERN int ruby_nerrs; @@ -153,7 +153,7 @@ vm_free(void *ptr) /* TODO: MultiVM Instance */ /* VM object should not be cleaned by GC */ /* ruby_xfree(ptr); */ - /* theYarvVM = 0; */ + /* ruby_current_vm = 0; */ } FREE_REPORT_LEAVE("vm"); } @@ -521,16 +521,12 @@ Init_VM(void) rb_vm_t *vm; rb_thread_t *th; - vm = theYarvVM; + vm = ruby_current_vm; xfree(RDATA(vmval)->data); RDATA(vmval)->data = vm; vm->self = vmval; - yarvVMArray = rb_ary_new(); - rb_register_mark_object(yarvVMArray); - rb_ary_push(yarvVMArray, vm->self); - /* create main thread */ thval = rb_thread_alloc(rb_cThread); GetThreadPtr(thval, th); @@ -557,7 +553,7 @@ Init_yarv(void) rb_thread_t *th = ALLOC(rb_thread_t); vm_init2(vm); - theYarvVM = vm; + ruby_current_vm = vm; th_init2(th); th->vm = vm; |