ruby-changes:52913
From: svn <ko1@a...>
Date: Thu, 18 Oct 2018 00:03:17 +0900 (JST)
Subject: [ruby-changes:52913] svn:r65126 (trunk): * expand tabs.
svn 2018-10-18 00:03:11 +0900 (Thu, 18 Oct 2018) New Revision: 65126 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65126 Log: * expand tabs. Modified files: trunk/pack.c Index: pack.c =================================================================== --- pack.c (revision 65125) +++ pack.c (revision 65126) @@ -751,7 +751,7 @@ pack_pack(int argc, VALUE *argv, VALUE a https://github.com/ruby/ruby/blob/trunk/pack.c#L751 StringValue(from); ptr = RSTRING_PTR(from); plen = RSTRING_LEN(from); - OBJ_INFECT(res, from); + OBJ_INFECT(res, from); if (len == 0 && type == 'm') { encodes(res, ptr, plen, type, 0); @@ -779,7 +779,7 @@ pack_pack(int argc, VALUE *argv, VALUE a https://github.com/ruby/ruby/blob/trunk/pack.c#L779 case 'M': /* quoted-printable encoded string */ from = rb_obj_as_string(NEXTFROM); - OBJ_INFECT(res, from); + OBJ_INFECT(res, from); if (len <= 1) len = 72; qpencode(res, from, len); @@ -805,7 +805,7 @@ pack_pack(int argc, VALUE *argv, VALUE a https://github.com/ruby/ruby/blob/trunk/pack.c#L805 } else { t = StringValuePtr(from); - OBJ_INFECT(res, from); + OBJ_INFECT(res, from); rb_obj_taint(from); } if (!associates) { @@ -1189,7 +1189,7 @@ pack_unpack_internal(VALUE str, VALUE fm https://github.com/ruby/ruby/blob/trunk/pack.c#L1189 len = (send - s) * 8; bits = 0; bitstr = rb_usascii_str_new(0, len); - OBJ_INFECT(bitstr, str); + OBJ_INFECT(bitstr, str); t = RSTRING_PTR(bitstr); for (i=0; i<len; i++) { if (i & 7) bits >>= 1; @@ -1211,7 +1211,7 @@ pack_unpack_internal(VALUE str, VALUE fm https://github.com/ruby/ruby/blob/trunk/pack.c#L1211 len = (send - s) * 8; bits = 0; bitstr = rb_usascii_str_new(0, len); - OBJ_INFECT(bitstr, str); + OBJ_INFECT(bitstr, str); t = RSTRING_PTR(bitstr); for (i=0; i<len; i++) { if (i & 7) bits <<= 1; @@ -1233,7 +1233,7 @@ pack_unpack_internal(VALUE str, VALUE fm https://github.com/ruby/ruby/blob/trunk/pack.c#L1233 len = (send - s) * 2; bits = 0; bitstr = rb_usascii_str_new(0, len); - OBJ_INFECT(bitstr, str); + OBJ_INFECT(bitstr, str); t = RSTRING_PTR(bitstr); for (i=0; i<len; i++) { if (i & 1) @@ -1257,7 +1257,7 @@ pack_unpack_internal(VALUE str, VALUE fm https://github.com/ruby/ruby/blob/trunk/pack.c#L1257 len = (send - s) * 2; bits = 0; bitstr = rb_usascii_str_new(0, len); - OBJ_INFECT(bitstr, str); + OBJ_INFECT(bitstr, str); t = RSTRING_PTR(bitstr); for (i=0; i<len; i++) { if (i & 1) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/