summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
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 27af51dd57..e129f9035a 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] */