ruby-changes:53216
From: svn <ko1@a...>
Date: Tue, 30 Oct 2018 03:00:21 +0900 (JST)
Subject: [ruby-changes:53216] svn:r65431 (trunk): * expand tabs.
svn 2018-10-30 03:00:14 +0900 (Tue, 30 Oct 2018) New Revision: 65431 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65431 Log: * expand tabs. Modified files: trunk/class.c trunk/gc.c trunk/struct.c Index: class.c =================================================================== --- class.c (revision 65430) +++ class.c (revision 65431) @@ -1782,7 +1782,7 @@ rb_keyword_error_new(const char *error, https://github.com/ruby/ruby/blob/trunk/class.c#L1782 if (len > 0) { rb_str_cat_cstr(error_message, ": "); while (1) { - const VALUE k = RARRAY_AREF(keys, i); + const VALUE k = RARRAY_AREF(keys, i); Check_Type(k, T_SYMBOL); /* wrong hash is given to rb_get_kwargs */ rb_str_append(error_message, rb_sym2str(k)); if (++i >= len) break; Index: struct.c =================================================================== --- struct.c (revision 65430) +++ struct.c (revision 65431) @@ -156,7 +156,7 @@ struct_member_pos(VALUE s, VALUE name) https://github.com/ruby/ruby/blob/trunk/struct.c#L156 mask, RSTRUCT_LEN(s)); } for (j = 0; j < mask; j++) { - if (RARRAY_AREF(back, j) == name) + if (RARRAY_AREF(back, j) == name) return (int)j; } return -1; @@ -172,8 +172,8 @@ struct_member_pos(VALUE s, VALUE name) https://github.com/ruby/ruby/blob/trunk/struct.c#L172 for (;;) { VALUE e = RARRAY_AREF(back, j); - if (e == name) - return FIX2INT(RARRAY_AREF(back, j + 1)); + if (e == name) + return FIX2INT(RARRAY_AREF(back, j + 1)); if (!RTEST(e)) { return -1; } Index: gc.c =================================================================== --- gc.c (revision 65430) +++ gc.c (revision 65431) @@ -2800,10 +2800,10 @@ define_final0(VALUE obj, VALUE block) https://github.com/ruby/ruby/blob/trunk/gc.c#L2800 long len = RARRAY_LEN(table); long i; - for (i = 0; i < len; i++) { + for (i = 0; i < len; i++) { VALUE recv = RARRAY_AREF(table, i); - if (rb_funcall(recv, idEq, 1, block)) { - return recv; + if (rb_funcall(recv, idEq, 1, block)) { + return recv; } } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/