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 /yarvcore.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 'yarvcore.c')
-rw-r--r-- | yarvcore.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/yarvcore.c b/yarvcore.c index 0fe43a7743..e297f69f5d 100644 --- a/yarvcore.c +++ b/yarvcore.c @@ -75,7 +75,6 @@ ID id__send_bang; 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; @@ -99,7 +98,7 @@ yarvcore_eval_iseq(VALUE iseq) } static VALUE -th_compile_from_node(rb_thread_t *th, NODE * node, VALUE file) +vm_compile_from_node(rb_thread_t *th, NODE * node, VALUE file) { VALUE iseq; if (th->base_block) { @@ -117,16 +116,16 @@ th_compile_from_node(rb_thread_t *th, NODE * node, VALUE file) } VALUE -th_compile(rb_thread_t *th, VALUE str, VALUE file, VALUE line) +vm_compile(rb_thread_t *th, VALUE str, VALUE file, VALUE line) { NODE *node = (NODE *) compile_string(str, file, line); - return th_compile_from_node(th, (NODE *) node, file); + return vm_compile_from_node(th, (NODE *) node, file); } VALUE yarvcore_eval_parsed(NODE *node, VALUE file) { - VALUE iseq = th_compile_from_node(GET_THREAD(), node, file); + VALUE iseq = vm_compile_from_node(GET_THREAD(), node, file); return yarvcore_eval_iseq(iseq); } |