[前][次][番号順一覧][スレッド一覧]

ruby-changes:40261

From: nobu <ko1@a...>
Date: Thu, 29 Oct 2015 14:45:31 +0900 (JST)
Subject: [ruby-changes:40261] nobu:r52342 (trunk): vm_core.h: move forward declarations

nobu	2015-10-29 14:45:18 +0900 (Thu, 29 Oct 2015)

  New Revision: 52342

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52342

  Log:
    vm_core.h: move forward declarations
    
    * vm_core.h (rb_thread_struct): move forward declarations before
      used.

  Modified files:
    trunk/ChangeLog
    trunk/vm_core.h
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52341)
+++ ChangeLog	(revision 52342)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Oct 29 14:45:15 2015  Nobuyoshi Nakada  <nobu@r...>
+
+	* vm_core.h (rb_thread_struct): move forward declarations before
+	  used.
+
 Thu Oct 29 14:07:54 2015  Koichi Sasada  <ko1@a...>
 
 	* gc.c (gc_mark_ptr): remove debug code for #11244.
Index: vm_core.h
===================================================================
--- vm_core.h	(revision 52341)
+++ vm_core.h	(revision 52342)
@@ -171,6 +171,10 @@ enum ruby_vm_throw_flags { https://github.com/ruby/ruby/blob/trunk/vm_core.h#L171
     VM_THROW_STATE_MASK = 0xff
 };
 
+/* forward declarations */
+struct rb_thread_struct;
+struct rb_control_frame_struct;
+
 /* iseq data type */
 typedef struct rb_compile_option_struct rb_compile_option_t;
 
@@ -191,10 +195,6 @@ union iseq_inline_storage_entry { https://github.com/ruby/ruby/blob/trunk/vm_core.h#L195
     struct iseq_inline_cache_entry cache;
 };
 
-/* to avoid warning */
-struct rb_thread_struct;
-struct rb_control_frame_struct;
-
 enum method_missing_reason {
     MISSING_NOENTRY   = 0x00,
     MISSING_PRIVATE   = 0x01,
@@ -624,13 +624,11 @@ struct rb_unblock_callback { https://github.com/ruby/ruby/blob/trunk/vm_core.h#L624
 
 struct rb_mutex_struct;
 
-struct rb_thread_struct;
 typedef struct rb_thread_list_struct{
     struct rb_thread_list_struct *next;
     struct rb_thread_struct *th;
 } rb_thread_list_t;
 
-
 typedef struct rb_ensure_entry {
     VALUE marker;
     VALUE (*e_proc)(ANYARGS);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]