From 34d1e9bb2504d7fa0b98ad99a32c549cd0d92853 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 21 Oct 2008 20:59:23 +0000 Subject: * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@19882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'vm_core.h') 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] */ -- cgit v1.2.3