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 | 197cc56a1b96ed70aa804c4cc1f0351c2364b991 (patch) | |
tree | f3d3c428b2fa8b14e801896c25d5d78a4e4cd91d /cont.c | |
parent | ba6f1242866b732c20eb5bd629656ab0cb355576 (diff) | |
download | ruby-197cc56a1b96ed70aa804c4cc1f0351c2364b991.tar.gz ruby-197cc56a1b96ed70aa804c4cc1f0351c2364b991.tar.xz ruby-197cc56a1b96ed70aa804c4cc1f0351c2364b991.zip |
* 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: http://svn.ruby-lang.org/repos/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; } |