ruby-changes:29052
From: nari <ko1@a...>
Date: Thu, 6 Jun 2013 14:18:52 +0900 (JST)
Subject: [ruby-changes:29052] nari:r41104 (trunk): * ext/objspace/object_tracing.c: rename allocation_info to
nari 2013-06-06 14:18:40 +0900 (Thu, 06 Jun 2013) New Revision: 41104 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41104 Log: * ext/objspace/object_tracing.c: rename allocation_info to lookup_allocation_info. At times I confused "struct allocation_info" with "function allocation_info". Modified files: trunk/ChangeLog trunk/ext/objspace/object_tracing.c Index: ChangeLog =================================================================== --- ChangeLog (revision 41103) +++ ChangeLog (revision 41104) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Jun 6 14:16:37 2013 Narihiro Nakamura <authornari@g...> + + * ext/objspace/object_tracing.c: rename allocation_info to + lookup_allocation_info. At times I confused "struct + allocation_info" with "function allocation_info". + Thu Jun 6 13:57:06 2013 Narihiro Nakamura <authornari@g...> * ext/objspace/object_tracing.c: allocation_info function isn't Index: ext/objspace/object_tracing.c =================================================================== --- ext/objspace/object_tracing.c (revision 41103) +++ ext/objspace/object_tracing.c (revision 41104) @@ -164,7 +164,7 @@ trace_object_allocations(VALUE objspace) https://github.com/ruby/ruby/blob/trunk/ext/objspace/object_tracing.c#L164 } 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) https://github.com/ruby/ruby/blob/trunk/ext/objspace/object_tracing.c#L178 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, VA https://github.com/ruby/ruby/blob/trunk/ext/objspace/object_tracing.c#L190 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, VA https://github.com/ruby/ruby/blob/trunk/ext/objspace/object_tracing.c#L202 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, VA https://github.com/ruby/ruby/blob/trunk/ext/objspace/object_tracing.c#L214 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, VAL https://github.com/ruby/ruby/blob/trunk/ext/objspace/object_tracing.c#L226 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); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/