mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
adjust indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c4816a11e4
commit
dcd4914b3a
1 changed files with 17 additions and 17 deletions
|
@ -529,24 +529,24 @@ date__strptime_internal(const char *str, size_t slen,
|
|||
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':
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue