diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-13 06:17:58 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-13 06:17:58 +0000 |
commit | 05b374b82461af2d68dfba472cf382bcc98379d7 (patch) | |
tree | 385268aa5696be16249f8819d37eccc4195b8c8c /class.c | |
parent | d2e3c034091ce3772e9cc12d2cbb4b0fe99b25bb (diff) |
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
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -42,7 +42,7 @@ rb_class_subclass_add(VALUE super, VALUE klass) rb_subclass_entry_t *entry, *head; if (super && super != Qundef) { - entry = xmalloc(sizeof(*entry)); + entry = ALLOC(rb_subclass_entry_t); entry->klass = klass; entry->next = NULL; @@ -62,7 +62,7 @@ rb_module_add_to_subclasses_list(VALUE module, VALUE iclass) { rb_subclass_entry_t *entry, *head; - entry = xmalloc(sizeof(*entry)); + entry = ALLOC(rb_subclass_entry_t); entry->klass = iclass; entry->next = NULL; |