summaryrefslogtreecommitdiff
path: root/yarvcore.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-17 08:48:52 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-17 08:48:52 +0000
commitdbee678630736a5d873cde1f262bf2cfc87e8dfe (patch)
tree2658d8158be06293836cb8338131a8cc73a1ed0e /yarvcore.h
parentca46eab09073c2d91bb21939b32aa6d767dafa36 (diff)
* some refactoring around yarvcore and proc.
* eval_proc.c: renamed to proc.c. * common.mk: ditto. * yarvcore.h, yarvcore.c: rename or remove some global variables removed: mYarvCore, mYarvInsns renamed: cYarvISeq -> rb_cISeq, cYarvProc -> rb_cProc, cYarvBinding -> rb_cBinding ::YarvCore module is removed and ::YarvCore::VM class becomes ::VM. And change/remove some functions which added with YARV. * compile.c: ditto. * eval.c: ditto. * iseq.c: ditto. * vm.c: ditto. * inits.c: rename Init_yarvcore to Init_vm. * yarvcore.c, proc.c: move some functions and initialization from yarvcore.c to proc.c. * intern.h, proc.c: add global function rb_binding_new(void). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'yarvcore.h')
-rw-r--r--yarvcore.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/yarvcore.h b/yarvcore.h
index dcb008db75d..5c2579ee29a 100644
--- a/yarvcore.h
+++ b/yarvcore.h
@@ -100,14 +100,10 @@
/* classes and modules */
-extern VALUE mYarvCore;
-extern VALUE cYarvISeq;
extern VALUE cYarvVM;
extern VALUE cYarvThread;
-extern VALUE mYarvInsns;
-extern VALUE cYarvEnv;
-extern VALUE cYarvProc;
-extern VALUE cYarvBinding;
+extern VALUE rb_cISeq;
+extern VALUE rb_cVM;
extern VALUE symIFUNC;
extern VALUE symCFUNC;
@@ -601,10 +597,8 @@ typedef VALUE CDHASH;
/* VM related object allocate functions */
/* TODO: should be static functions */
VALUE yarv_thread_alloc(VALUE klass);
-VALUE yarv_env_alloc(VALUE klass);
-VALUE yarv_proc_alloc(VALUE klass);
-VALUE yarv_binding_alloc(VALUE klass);
-
+VALUE yarv_env_alloc(void);
+VALUE yarv_proc_alloc(void);
/* for debug */
extern void vm_stack_dump_raw(yarv_thread_t *, yarv_control_frame_t *);