ruby/ruby — pull request #176 by nobu (2012-09-08 08:36:42+00:00)
Title: 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.