diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-17 08:41:23 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-17 08:41:23 +0000 |
commit | 76b06555d05bbf320e2014762efd310de11f0068 (patch) | |
tree | cb451cdd7e4506f4c59d418461068d1fc4afd7ef /gc.c | |
parent | 3de7ec0a3f74932d1b65089e606f194cb816e165 (diff) |
* gc.c, internal.h: rename ruby_xsizefree/realloc to
rb_sized_free/realloc.
* array.c: catch up these changes.
* string.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -5045,7 +5045,7 @@ ruby_xcalloc(size_t n, size_t size) } void * -ruby_xsizedrealloc(void *ptr, size_t new_size, size_t old_size) +ruby_sized_xrealloc(void *ptr, size_t new_size, size_t old_size) { return vm_xrealloc(&rb_objspace, ptr, new_size, old_size); } @@ -5053,7 +5053,7 @@ ruby_xsizedrealloc(void *ptr, size_t new_size, size_t old_size) void * ruby_xrealloc(void *ptr, size_t new_size) { - return ruby_xsizedrealloc(ptr, new_size, 0); + return ruby_sized_xrealloc(ptr, new_size, 0); } void * @@ -5067,7 +5067,7 @@ ruby_xrealloc2(void *ptr, size_t n, size_t size) } void -ruby_xsizedfree(void *x, size_t size) +ruby_sized_xfree(void *x, size_t size) { if (x) { vm_xfree(&rb_objspace, x, size); @@ -5077,7 +5077,7 @@ ruby_xsizedfree(void *x, size_t size) void ruby_xfree(void *x) { - ruby_xsizedfree(x, 0); + ruby_sized_xfree(x, 0); } /* Mimic ruby_xmalloc, but need not rb_objspace. |