aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-29 05:45:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-29 05:45:18 +0000
commitfd69901b269f7b414b497610f496714d7e42cb2e (patch)
treea53c7c914c8076878226b3a7937053442ad7d8b9 /vm_core.h
parent86bbdf1d9159398aacd6d04215cf467f66d6fff0 (diff)
downloadruby-fd69901b269f7b414b497610f496714d7e42cb2e.tar.gz
vm_core.h: move forward declarations
* vm_core.h (rb_thread_struct): move forward declarations before used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/vm_core.h b/vm_core.h
index 50fd3ee3d2..0684e85456 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -171,6 +171,10 @@ enum ruby_vm_throw_flags {
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 {
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 {
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);