ruby-changes:54539
From: svn <ko1@a...>
Date: Tue, 8 Jan 2019 18:08:42 +0900 (JST)
Subject: [ruby-changes:54539] svn:r66754 (trunk): * expand tabs.
svn 2019-01-08 18:08:37 +0900 (Tue, 08 Jan 2019) New Revision: 66754 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66754 Log: * expand tabs. Modified files: trunk/error.c trunk/eval_error.c Index: eval_error.c =================================================================== --- eval_error.c (revision 66753) +++ eval_error.c (revision 66754) @@ -172,11 +172,11 @@ print_errinfo(const VALUE eclass, const https://github.com/ruby/ruby/blob/trunk/eval_error.c#L172 if (RSTRING_PTR(epath)[0] == '#') epath = 0; if ((tail = memchr(einfo, '\n', elen)) != 0) { - write_warnq(str, emesg, einfo, tail - einfo); + write_warnq(str, emesg, einfo, tail - einfo); tail++; /* skip newline */ } else { - write_warnq(str, emesg, einfo, elen); + write_warnq(str, emesg, einfo, elen); } if (epath) { write_warn(str, " ("); @@ -192,7 +192,7 @@ print_errinfo(const VALUE eclass, const https://github.com/ruby/ruby/blob/trunk/eval_error.c#L192 } if (tail && einfo+elen > tail) { if (!highlight) { - write_warnq(str, emesg, tail, einfo+elen-tail); + write_warnq(str, emesg, tail, einfo+elen-tail); if (einfo[elen-1] != '\n') write_warn2(str, "\n", 1); } else { @@ -202,7 +202,7 @@ print_errinfo(const VALUE eclass, const https://github.com/ruby/ruby/blob/trunk/eval_error.c#L202 tail = memchr(einfo, '\n', elen); if (!tail || tail > einfo) { write_warn(str, bold); - write_warnq(str, emesg, einfo, tail ? tail-einfo : elen); + write_warnq(str, emesg, einfo, tail ? tail-einfo : elen); write_warn(str, reset); if (!tail) { write_warn2(str, "\n", 1); @@ -212,7 +212,7 @@ print_errinfo(const VALUE eclass, const https://github.com/ruby/ruby/blob/trunk/eval_error.c#L212 elen -= tail - einfo; einfo = tail; do ++tail; while (tail < einfo+elen && *tail == '\n'); - write_warnq(str, emesg, einfo, tail-einfo); + write_warnq(str, emesg, einfo, tail-einfo); elen -= tail - einfo; einfo = tail; } Index: error.c =================================================================== --- error.c (revision 66753) +++ error.c (revision 66754) @@ -1684,7 +1684,7 @@ name_err_mesg_to_str(VALUE obj) https://github.com/ruby/ruby/blob/trunk/error.c#L1684 else { c = s = FAKE_CSTR(&s_str, ""); } - args[0] = rb_obj_as_string(ptr[NAME_ERR_MESG__NAME]); + args[0] = rb_obj_as_string(ptr[NAME_ERR_MESG__NAME]); args[1] = d; args[2] = s; args[3] = c; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/