summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-28 04:54:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-28 04:54:04 +0000
commit49479c2dccbf5bac43278b85b3a28d4726e8ecbf (patch)
tree050c2079cdf3e4bc0c5505a4105f84542171eb9f
parent1cb2f961588d86737c4992fc3d06895e05d21fd5 (diff)
strftime.c: linux style
* strftime.c (rb_strftime_with_timespec): fix indentation using linux style. this file is not written in ruby-style. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--strftime.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/strftime.c b/strftime.c
index 8be95a310b4..ba65c875024 100644
--- a/strftime.c
+++ b/strftime.c
@@ -450,35 +450,35 @@ rb_strftime_with_timespec(char *s, size_t maxsize, const char *format, rb_encodi
case 'Y': /* year with century */
if (FIXNUM_P(vtm->year)) {
- long y = FIX2LONG(vtm->year);
- FMT('0', 0 <= y ? 4 : 5, "ld", y);
+ long y = FIX2LONG(vtm->year);
+ FMT('0', 0 <= y ? 4 : 5, "ld", y);
}
else {
- FMTV('0', 4, "d", vtm->year);
+ FMTV('0', 4, "d", vtm->year);
}
continue;
#ifdef MAILHEADER_EXT
case 'z': /* time zone offset east of GMT e.g. -0600 */
switch (colons) {
- case 0: /* %z -> +hhmm */
- precision = precision <= 5 ? 2 : precision-3;
- NEEDS(precision + 3);
- break;
-
- case 1: /* %:z -> +hh:mm */
- precision = precision <= 6 ? 2 : precision-4;
- NEEDS(precision + 4);
- break;
-
- case 2: /* %::z -> +hh:mm:ss */
- precision = precision <= 9 ? 2 : precision-7;
- NEEDS(precision + 7);
- break;
-
- default:
- format--;
- goto unknown;
+ case 0: /* %z -> +hhmm */
+ precision = precision <= 5 ? 2 : precision-3;
+ NEEDS(precision + 3);
+ break;
+
+ case 1: /* %:z -> +hh:mm */
+ precision = precision <= 6 ? 2 : precision-4;
+ NEEDS(precision + 4);
+ break;
+
+ case 2: /* %::z -> +hh:mm:ss */
+ precision = precision <= 9 ? 2 : precision-7;
+ NEEDS(precision + 7);
+ break;
+
+ default:
+ format--;
+ goto unknown;
}
if (gmt) {
off = 0;