summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-31 06:17:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-31 06:17:45 +0000
commit1a192e2b29e9a7fa91632f1fbbffefb3ecdd1b63 (patch)
tree43b394fdba488a790c9a7ad7f0016ff6ffd69a2b /vm_core.h
parent7981720812b73175c27a90d1d653c5e127e439ff (diff)
* include/ruby/mvm.h: new header file for MVM, and moved rb_vm_t and
rb_thread_t from vm_core.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/vm_core.h b/vm_core.h
index f0fdafef2d..08c6449c78 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -17,6 +17,7 @@
#include <setjmp.h>
#include "ruby/ruby.h"
+#include "ruby/mvm.h"
#include "ruby/signal.h"
#include "ruby/st.h"
#include "ruby/node.h"
@@ -285,7 +286,8 @@ typedef struct rb_iseq_struct rb_iseq_t;
#define GetVMPtr(obj, ptr) \
GetCoreDataFromValue(obj, rb_vm_t, ptr)
-typedef struct rb_vm_struct {
+struct rb_vm_struct
+{
VALUE self;
rb_thread_lock_t global_interpreter_lock;
@@ -320,7 +322,7 @@ typedef struct rb_vm_struct {
#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
struct rb_objspace *objspace;
#endif
-} rb_vm_t;
+};
typedef struct {
VALUE *pc; /* cfp[0] */
@@ -378,8 +380,6 @@ struct rb_unblock_callback {
void *arg;
};
-typedef struct rb_thread_struct rb_thread_t;
-
struct rb_thread_struct
{
VALUE self;