1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

class.c: use ALLOC(rb_subclass_entry_t)

It is easier to search for allocations by type.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2014-09-13 06:17:58 +00:00
parent d2e3c03409
commit 05b374b824
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Sat Sep 13 15:16:31 2014 Eric Wong <e@80x24.org>
* class.c: use ALLOC(rb_subclass_entry_t)
Sat Sep 13 14:14:00 2014 Eric Wong <e@80x24.org> Sat Sep 13 14:14:00 2014 Eric Wong <e@80x24.org>
* process.c (free_exec_arg): remove * process.c (free_exec_arg): remove

View file

@ -42,7 +42,7 @@ rb_class_subclass_add(VALUE super, VALUE klass)
rb_subclass_entry_t *entry, *head; rb_subclass_entry_t *entry, *head;
if (super && super != Qundef) { if (super && super != Qundef) {
entry = xmalloc(sizeof(*entry)); entry = ALLOC(rb_subclass_entry_t);
entry->klass = klass; entry->klass = klass;
entry->next = NULL; entry->next = NULL;
@ -62,7 +62,7 @@ rb_module_add_to_subclasses_list(VALUE module, VALUE iclass)
{ {
rb_subclass_entry_t *entry, *head; rb_subclass_entry_t *entry, *head;
entry = xmalloc(sizeof(*entry)); entry = ALLOC(rb_subclass_entry_t);
entry->klass = iclass; entry->klass = iclass;
entry->next = NULL; entry->next = NULL;