ruby-changes:41157
From: ngoto <ko1@a...>
Date: Mon, 21 Dec 2015 21:35:38 +0900 (JST)
Subject: [ruby-changes:41157] ngoto:r53230 (trunk): * variable.c (struct ivar_update): rename "extended" to "iv_extended"
ngoto 2015-12-21 21:35:29 +0900 (Mon, 21 Dec 2015) New Revision: 53230 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53230 Log: * variable.c (struct ivar_update): rename "extended" to "iv_extended" to avoid name conflict with /usr/include/floatingpoint.h on Solaris. [Bug #11853] [ruby-dev:49448] Modified files: trunk/ChangeLog trunk/variable.c Index: ChangeLog =================================================================== --- ChangeLog (revision 53229) +++ ChangeLog (revision 53230) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Dec 21 21:29:45 2015 Naohisa Goto <ngotogenome@g...> + + * variable.c (struct ivar_update): rename "extended" to "iv_extended" + to avoid name conflict with /usr/include/floatingpoint.h on + Solaris. [Bug #11853] [ruby-dev:49448] + Mon Dec 21 12:15:32 2015 Kimura Wataru <kimuraw@i...> * test/ruby/test_io.rb: handled rlimit value same as r52277 Index: variable.c =================================================================== --- variable.c (revision 53229) +++ variable.c (revision 53230) @@ -40,7 +40,7 @@ struct ivar_update { https://github.com/ruby/ruby/blob/trunk/variable.c#L40 struct gen_ivtbl *ivtbl; } u; st_data_t index; - int extended; + int iv_extended; }; void @@ -1070,7 +1070,7 @@ iv_index_tbl_newsize(struct ivar_update https://github.com/ruby/ruby/blob/trunk/variable.c#L1070 { long newsize = (ivup->index+1) + (ivup->index+1)/4; /* (index+1)*1.25 */ - if (!ivup->extended && + if (!ivup->iv_extended && ivup->u.iv_index_tbl->num_entries < (st_index_t)newsize) { newsize = ivup->u.iv_index_tbl->num_entries; } @@ -1326,7 +1326,7 @@ iv_index_tbl_extend(struct ivar_update * https://github.com/ruby/ruby/blob/trunk/variable.c#L1326 } ivup->index = (st_data_t)ivup->u.iv_index_tbl->num_entries; st_add_direct(ivup->u.iv_index_tbl, (st_data_t)id, ivup->index); - ivup->extended = 1; + ivup->iv_extended = 1; } static void @@ -1334,7 +1334,7 @@ generic_ivar_set(VALUE obj, ID id, VALUE https://github.com/ruby/ruby/blob/trunk/variable.c#L1334 { struct ivar_update ivup; - ivup.extended = 0; + ivup.iv_extended = 0; ivup.u.iv_index_tbl = iv_index_tbl_make(obj); iv_index_tbl_extend(&ivup, id); st_update(generic_iv_tbl, (st_data_t)obj, generic_ivar_update, @@ -1355,7 +1355,7 @@ rb_ivar_set(VALUE obj, ID id, VALUE val) https://github.com/ruby/ruby/blob/trunk/variable.c#L1355 switch (BUILTIN_TYPE(obj)) { case T_OBJECT: - ivup.extended = 0; + ivup.iv_extended = 0; ivup.u.iv_index_tbl = iv_index_tbl_make(obj); iv_index_tbl_extend(&ivup, id); len = ROBJECT_NUMIV(obj); @@ -1516,7 +1516,7 @@ gen_ivar_copy(ID id, VALUE val, st_data_ https://github.com/ruby/ruby/blob/trunk/variable.c#L1516 struct givar_copy *c = (struct givar_copy *)arg; struct ivar_update ivup; - ivup.extended = 0; + ivup.iv_extended = 0; ivup.u.iv_index_tbl = c->iv_index_tbl; iv_index_tbl_extend(&ivup, id); if ((long)ivup.index >= c->ivtbl->numiv) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/