Skip to content

Commit

Permalink
vm_core.h: move forward declarations
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nobu committed Oct 29, 2015
1 parent 86bbdf1 commit fd69901
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Oct 29 14:45:15 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>

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

Thu Oct 29 14:07:54 2015 Koichi Sasada <ko1@atdot.net>

* gc.c (gc_mark_ptr): remove debug code for #11244.
Expand Down
10 changes: 4 additions & 6 deletions vm_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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,
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit fd69901

Please sign in to comment.