summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-08 09:52:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-08 09:52:26 +0000
commit5fbfc21b67f4bd68502e186024636f5bf4350f90 (patch)
tree3ff79b074c314852173be275c081b16483b1f3ac /internal.h
parentea005c47faf3563b7fc9a3f92525a05e745df033 (diff)
internal.h: allocator function in rb_classext_t
* internal.h (struct rb_classext_struct): move allocator function into rb_classext_t from ordinary method table. [ruby-dev:46121] [Feature #6993] * object.c (rb_obj_alloc): call allocator function directly. * vm_method.c (rb_define_alloc_func, rb_undef_alloc_func) (rb_get_alloc_func): use allocator function in rb_classext_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index 57c1fc8cfa..e67273e0e8 100644
--- a/internal.h
+++ b/internal.h
@@ -29,6 +29,7 @@ struct rb_classext_struct {
struct st_table *const_tbl;
VALUE origin;
VALUE refined_class;
+ rb_alloc_func_t allocator;
};
#undef RCLASS_SUPER