ruby-changes:5218
From: nobu <ko1@a...>
Date: Sat, 31 May 2008 15:18:01 +0900 (JST)
Subject: [ruby-changes:5218] Ruby:r16713 (trunk): * include/ruby/mvm.h: new header file for MVM, and moved rb_vm_t and
nobu 2008-05-31 15:17:45 +0900 (Sat, 31 May 2008) New Revision: 16713 Added files: trunk/include/ruby/mvm.h Modified files: trunk/ChangeLog trunk/include/ruby.h trunk/main.c trunk/vm_core.h Log: * include/ruby/mvm.h: new header file for MVM, and moved rb_vm_t and rb_thread_t from vm_core.h. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16713&r2=16712&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby.h?r1=16713&r2=16712&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/mvm.h?revision=16713&view=markup http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/mvm.h?r1=16713&r2=16712&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/vm_core.h?r1=16713&r2=16712&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/main.c?r1=16713&r2=16712&diff_format=u Index: include/ruby/mvm.h =================================================================== --- include/ruby/mvm.h (revision 0) +++ include/ruby/mvm.h (revision 16713) @@ -0,0 +1,18 @@ +/********************************************************************** + + ruby/mvm.h - + + $Author$ + created at: Sat May 31 15:17:36 2008 + + Copyright (C) 2008 Yukihiro Matsumoto + +**********************************************************************/ + +#ifndef RUBY_MVM_H +#define RUBY_MVM_H 1 + +typedef struct rb_vm_struct rb_vm_t; +typedef struct rb_thread_struct rb_thread_t; + +#endif /* RUBY_MVM_H */ Property changes on: include/ruby/mvm.h ___________________________________________________________________ Name: svn:eol-style + LF Name: svn:keywords + Author Id Revision Index: include/ruby.h =================================================================== --- include/ruby.h (revision 16712) +++ include/ruby.h (revision 16713) @@ -1 +1,21 @@ +/********************************************************************** + + ruby/mvm.h - + + $Author$ + created at: Sun 10 12:06:15 Jun JST 2007 + + Copyright (C) 2007-2008 Yukihiro Matsumoto + +**********************************************************************/ + +#ifndef RUBY_H +#define RUBY_H 1 + #include <ruby/ruby.h> +#if RUBY_VM +#include <ruby/mvm.h> +#endif + +extern void ruby_set_debug_option(const char *); +#endif /* RUBY_H */ Index: ChangeLog =================================================================== --- ChangeLog (revision 16712) +++ ChangeLog (revision 16713) @@ -1,3 +1,8 @@ +Sat May 31 15:17:36 2008 Nobuyoshi Nakada <nobu@r...> + + * include/ruby/mvm.h: new header file for MVM, and moved rb_vm_t and + rb_thread_t from vm_core.h. + Sat May 31 12:02:23 2008 Tanaka Akira <akr@f...> * test/ruby/envutil.rb (assert_normal_exit): show pid when fail. Index: vm_core.h =================================================================== --- vm_core.h (revision 16712) +++ vm_core.h (revision 16713) @@ -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 @@ #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 @@ #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 @@ void *arg; }; -typedef struct rb_thread_struct rb_thread_t; - struct rb_thread_struct { VALUE self; Index: main.c =================================================================== --- main.c (revision 16712) +++ main.c (revision 16713) @@ -10,7 +10,7 @@ **********************************************************************/ #undef RUBY_EXPORT -#include "ruby/ruby.h" +#include "ruby.h" #ifdef HAVE_LOCALE_H #include <locale.h> #endif @@ -21,7 +21,6 @@ main(int argc, char **argv, char **envp) { #ifdef RUBY_DEBUG_ENV - extern void ruby_set_debug_option(const char *); ruby_set_debug_option(getenv("RUBY_DEBUG")); #endif #ifdef HAVE_LOCALE_H -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/