diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-18 03:05:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-18 03:05:11 +0000 |
commit | 19f386674eb5cfbf9c8fd6041114829f37888d17 (patch) | |
tree | 766bda2001fc604141fbe7c8b51417d6c0e8fc2f /internal.h | |
parent | 3b59f6c56278b1314f5b01a192ed03966aa3d0db (diff) |
* include/ruby/backward/classext.h: for evil gems. fixed #4803
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/internal.h b/internal.h index c95c5f87f6..2cc3b529df 100644 --- a/internal.h +++ b/internal.h @@ -19,12 +19,24 @@ extern "C" { #endif #endif +struct rb_deprecated_classext_struct { + char conflict[sizeof(VALUE) * 3]; +}; + struct rb_classext_struct { VALUE super; struct st_table *iv_tbl; struct st_table *const_tbl; }; +#undef RCLASS_SUPER +#define RCLASS_EXT(c) (RCLASS(c)->ptr) +#define RCLASS_SUPER(c) (RCLASS_EXT(c)->super) +#define RCLASS_IV_TBL(c) (RCLASS_EXT(c)->iv_tbl) +#define RCLASS_CONST_TBL(c) (RCLASS_EXT(c)->const_tbl) +#define RCLASS_M_TBL(c) (RCLASS(c)->m_tbl) +#define RCLASS_IV_INDEX_TBL(c) (RCLASS(c)->iv_index_tbl) + struct vtm; /* defined by timev.h */ /* bignum.c */ |