aboutsummaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/ruby/ruby.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 8405f4c624..01b3c2efc6 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -38,6 +38,9 @@ extern "C" {
#ifndef DEPRECATED_BY
# define DEPRECATED_BY(n,x) DEPRECATED(x)
#endif
+#ifndef DEPRECATED_TYPE
+# define DEPRECATED_TYPE(mesg, decl) decl
+#endif
#ifndef NOINLINE
# define NOINLINE(x) x
#endif
@@ -821,15 +824,11 @@ struct RObject {
RCLASS_IV_INDEX_TBL(rb_obj_class(o)) : \
ROBJECT(o)->as.heap.iv_index_tbl)
-/** @internal */
-typedef struct rb_classext_struct rb_classext_t;
-
+#define RClass RClassDeprecated
+DEPRECATED_TYPE(("RClass is internal use only"),
struct RClass {
struct RBasic basic;
- VALUE super;
- rb_classext_t *ptr;
- struct st_table *m_tbl;
-};
+});
#define RCLASS_SUPER(c) rb_class_get_superclass(c)
#define RMODULE_IV_TBL(m) RCLASS_IV_TBL(m)
#define RMODULE_CONST_TBL(m) RCLASS_CONST_TBL(m)