From 8a1b1c2b41b475cc40a8013623b5b6fe5381d6da Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 26 Feb 2007 22:51:33 +0000 Subject: * 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 --- yarvcore.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'yarvcore.c') 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; -- cgit v1.2.3