summaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-21 20:59:23 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-21 20:59:23 +0000
commitf6a5d1e62259c8c2fd3b3d9d6e8a212739cf412a (patch)
tree3684a3a9330303573f4ae54a3b24fc7d1915b70d /vm_core.h
parentd0bc76d0957a5c28bb60f872c12b1d16eb1013c7 (diff)
downloadruby-f6a5d1e62259c8c2fd3b3d9d6e8a212739cf412a.tar.gz
ruby-f6a5d1e62259c8c2fd3b3d9d6e8a212739cf412a.tar.xz
ruby-f6a5d1e62259c8c2fd3b3d9d6e8a212739cf412a.zip
* include/ruby/vm.h: write a comment.
* common.mk: remove vm.h from any rules. vm.h is not needed on this version. * vm_core.h: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/vm_core.h b/vm_core.h
index 27af51dd5..e129f9035 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -15,7 +15,6 @@
#define RUBY_VM_THREAD_MODEL 2
#include "ruby/ruby.h"
-#include "ruby/vm.h"
#include "ruby/st.h"
#include "node.h"
@@ -225,8 +224,7 @@ typedef struct rb_iseq_struct rb_iseq_t;
#define GetVMPtr(obj, ptr) \
GetCoreDataFromValue(obj, rb_vm_t, ptr)
-struct rb_vm_struct
-{
+typedef struct rb_vm_struct {
VALUE self;
rb_thread_lock_t global_vm_lock;
@@ -270,7 +268,7 @@ 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] */