ruby-changes:52397
From: nobu <ko1@a...>
Date: Sat, 1 Sep 2018 15:14:12 +0900 (JST)
Subject: [ruby-changes:52397] nobu:r64606 (trunk): adjust indent
nobu 2018-09-01 15:14:06 +0900 (Sat, 01 Sep 2018) New Revision: 64606 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64606 Log: adjust indent Modified files: trunk/ext/date/date_strptime.c Index: ext/date/date_strptime.c =================================================================== --- ext/date/date_strptime.c (revision 64605) +++ ext/date/date_strptime.c (revision 64606) @@ -529,24 +529,24 @@ date__strptime_internal(const char *str, https://github.com/ruby/ruby/blob/trunk/ext/date/date_strptime.c#L529 goto matched; case 'Y': - { - VALUE n; - int sign = 1; + { + VALUE n; + int sign = 1; - if (issign(str[si])) { - if (str[si] == '-') - sign = -1; - si++; - } - if (NUM_PATTERN_P()) - READ_DIGITS(n, 4); - else - READ_DIGITS_MAX(n); - if (sign == -1) - n = f_negate(n); - set_hash("year", n); - goto matched; - } + if (issign(str[si])) { + if (str[si] == '-') + sign = -1; + si++; + } + if (NUM_PATTERN_P()) + READ_DIGITS(n, 4); + else + READ_DIGITS_MAX(n); + if (sign == -1) + n = f_negate(n); + set_hash("year", n); + goto matched; + } case 'y': { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/