diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-24 15:42:41 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-24 15:42:41 +0000 |
commit | 97ba019c9410ccb5ec76f6b54fd2e140b7583038 (patch) | |
tree | f3d3c428b2fa8b14e801896c25d5d78a4e4cd91d /cont.c | |
parent | a5c2d584284e2b137b1d4d06574470a971c9087e (diff) | |
download | ruby-97ba019c9410ccb5ec76f6b54fd2e140b7583038.tar.gz |
* vm.c: some refactoring.
* rename th_* to vm_*.
* remove unused variables functions.
* add prototypes.
* blockinlining.c, compile.c, cont.c, eval.c, eval_intern.h,
eval_jump.h, eval_load.c, inits.c, insns.def, iseq.c, parse.y,
proc.c, process.c, signal.c, thread.c, vm.c, vm_dump.c,
vm_evalbody.ci, yarvcore.c, yarvcore.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cont.c')
-rw-r--r-- | cont.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -157,7 +157,7 @@ cont_new(VALUE klass) return cont; } -void th_stack_to_heap(rb_thread_t *th); +void vm_stack_to_heap(rb_thread_t *th); static VALUE cont_capture(volatile int *stat) @@ -166,7 +166,7 @@ cont_capture(volatile int *stat) rb_thread_t *th; volatile VALUE contval; - th_stack_to_heap(GET_THREAD()); + vm_stack_to_heap(GET_THREAD()); cont = cont_new(rb_cCont); contval = cont->self; th = &cont->saved_thread; @@ -535,12 +535,12 @@ rb_fiber_start(void) th->local_lfp = proc->block.lfp; th->local_svar = Qnil; - cont->value = th_invoke_proc(th, proc, proc->block.self, 1, &args); + cont->value = vm_invoke_proc(th, proc, proc->block.self, 1, &args); } TH_POP_TAG(); if (state) { - th->thrown_errinfo = th_make_jump_tag_but_local_jump(state, th->errinfo); + th->thrown_errinfo = vm_make_jump_tag_but_local_jump(state, th->errinfo); th->interrupt_flag = 1; } |