From fbece268c7c58c32970b581712c8c3d662b20ed1 Mon Sep 17 00:00:00 2001 From: nari Date: Thu, 6 Jun 2013 05:18:40 +0000 Subject: * ext/objspace/object_tracing.c: rename allocation_info to lookup_allocation_info. At times I confused "struct allocation_info" with "function allocation_info". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/objspace/object_tracing.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ext') diff --git a/ext/objspace/object_tracing.c b/ext/objspace/object_tracing.c index 2b98383105..f10b071899 100644 --- a/ext/objspace/object_tracing.c +++ b/ext/objspace/object_tracing.c @@ -164,7 +164,7 @@ trace_object_allocations(VALUE objspace) } static struct allocation_info * -allocation_info(VALUE obj) +lookup_allocation_info(VALUE obj) { if (traceobj_arg) { struct allocation_info *info; @@ -178,7 +178,7 @@ allocation_info(VALUE obj) static VALUE allocation_sourcefile(VALUE objspace, VALUE obj) { - struct allocation_info *info = allocation_info(obj); + struct allocation_info *info = lookup_allocation_info(obj); if (info) { return info->path ? rb_str_new2(info->path) : Qnil; } @@ -190,7 +190,7 @@ allocation_sourcefile(VALUE objspace, VALUE obj) static VALUE allocation_sourceline(VALUE objspace, VALUE obj) { - struct allocation_info *info = allocation_info(obj); + struct allocation_info *info = lookup_allocation_info(obj); if (info) { return INT2FIX(info->line); } @@ -202,7 +202,7 @@ allocation_sourceline(VALUE objspace, VALUE obj) static VALUE allocation_class_path(VALUE objspace, VALUE obj) { - struct allocation_info *info = allocation_info(obj); + struct allocation_info *info = lookup_allocation_info(obj); if (info) { return info->class_path ? rb_str_new2(info->class_path) : Qnil; } @@ -214,7 +214,7 @@ allocation_class_path(VALUE objspace, VALUE obj) static VALUE allocation_method_id(VALUE objspace, VALUE obj) { - struct allocation_info *info = allocation_info(obj); + struct allocation_info *info = lookup_allocation_info(obj); if (info) { return info->mid; } @@ -226,7 +226,7 @@ allocation_method_id(VALUE objspace, VALUE obj) static VALUE allocation_generation(VALUE objspace, VALUE obj) { - struct allocation_info *info = allocation_info(obj); + struct allocation_info *info = lookup_allocation_info(obj); if (info) { return SIZET2NUM(info->generation); } -- cgit v1.2.3