summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-02 07:54:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-02 07:54:17 +0000
commit97982e823fd6772ce475c250676a73c03fbf3d94 (patch)
tree4560c76be107b254fd1cd6f96cfce3e9634faf1a /class.c
parent149f8f17efbe4e4dfde350af7b1bf5b54cfb5c1a (diff)
id.def: predefined IDs
* defs/id.def: add more predefined IDs used in core. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r--class.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/class.c b/class.c
index 043abe3..9d333fd 100644
--- a/class.c
+++ b/class.c
@@ -32,7 +32,7 @@
#include <ctype.h>
extern st_table *rb_class_tbl;
-static ID id_attached;
+#define id_attached id__attached__
/**
* Allocates a struct RClass for a new class.
@@ -400,8 +400,6 @@ boot_defclass(const char *name, VALUE super)
void
Init_class_hierarchy(void)
{
- id_attached = rb_intern("__attached__");
-
rb_cBasicObject = boot_defclass("BasicObject", 0);
rb_cObject = boot_defclass("Object", rb_cBasicObject);
rb_cModule = boot_defclass("Module", rb_cObject);