aboutsummaryrefslogtreecommitdiffstats
path: root/internal.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-28 01:32:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-28 01:32:15 +0000
commita6c72e91dee67a02d7ae744ca98fa938f9506689 (patch)
tree6af1e6dfb53a9f62443335cce60a95938d1b88de /internal.h
parentdf1c9b4bd86b543a553ebbf8cff041ac50dcc0a5 (diff)
downloadruby-a6c72e91dee67a02d7ae744ca98fa938f9506689.tar.gz
internal.h: moved RClass
* internal.h (struct RClass): moved from ruby/ruby.h to hide the internals. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index c2e5a5b757..58ff89763c 100644
--- a/internal.h
+++ b/internal.h
@@ -479,6 +479,16 @@ struct rb_classext_struct {
rb_alloc_func_t allocator;
};
+typedef struct rb_classext_struct rb_classext_t;
+
+#undef RClass
+struct RClass {
+ struct RBasic basic;
+ VALUE super;
+ rb_classext_t *ptr;
+ struct st_table *m_tbl;
+};
+
void rb_class_subclass_add(VALUE super, VALUE klass);
void rb_class_remove_from_super_subclasses(VALUE);