[前][次][番号順一覧][スレッド一覧]

ruby-changes:36522

From: nobu <ko1@a...>
Date: Thu, 27 Nov 2014 17:08:50 +0900 (JST)
Subject: [ruby-changes:36522] nobu:r48604 (trunk): time.c: indent

nobu	2014-11-27 17:08:32 +0900 (Thu, 27 Nov 2014)

  New Revision: 48604

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48604

  Log:
    time.c: indent
    
    * time.c (find_time_t): adjust indent.

  Modified files:
    trunk/time.c
Index: time.c
===================================================================
--- time.c	(revision 48603)
+++ time.c	(revision 48604)
@@ -2781,56 +2781,56 @@ find_time_t(struct tm *tptr, int utc_p, https://github.com/ruby/ruby/blob/trunk/time.c#L2781
 
     tm0 = *tptr;
     if (tm0.tm_mon < 0) {
-      tm0.tm_mon = 0;
-      tm0.tm_mday = 1;
-      tm0.tm_hour = 0;
-      tm0.tm_min = 0;
-      tm0.tm_sec = 0;
+	tm0.tm_mon = 0;
+	tm0.tm_mday = 1;
+	tm0.tm_hour = 0;
+	tm0.tm_min = 0;
+	tm0.tm_sec = 0;
     }
     else if (11 < tm0.tm_mon) {
-      tm0.tm_mon = 11;
-      tm0.tm_mday = 31;
-      tm0.tm_hour = 23;
-      tm0.tm_min = 59;
-      tm0.tm_sec = 60;
+	tm0.tm_mon = 11;
+	tm0.tm_mday = 31;
+	tm0.tm_hour = 23;
+	tm0.tm_min = 59;
+	tm0.tm_sec = 60;
     }
     else if (tm0.tm_mday < 1) {
-      tm0.tm_mday = 1;
-      tm0.tm_hour = 0;
-      tm0.tm_min = 0;
-      tm0.tm_sec = 0;
+	tm0.tm_mday = 1;
+	tm0.tm_hour = 0;
+	tm0.tm_min = 0;
+	tm0.tm_sec = 0;
     }
     else if ((d = (leap_year_p(1900 + tm0.tm_year) ?
                    leap_year_days_in_month :
 		   common_year_days_in_month)[tm0.tm_mon]) < tm0.tm_mday) {
-      tm0.tm_mday = d;
-      tm0.tm_hour = 23;
-      tm0.tm_min = 59;
-      tm0.tm_sec = 60;
+	tm0.tm_mday = d;
+	tm0.tm_hour = 23;
+	tm0.tm_min = 59;
+	tm0.tm_sec = 60;
     }
     else if (tm0.tm_hour < 0) {
-      tm0.tm_hour = 0;
-      tm0.tm_min = 0;
-      tm0.tm_sec = 0;
+	tm0.tm_hour = 0;
+	tm0.tm_min = 0;
+	tm0.tm_sec = 0;
     }
     else if (23 < tm0.tm_hour) {
-      tm0.tm_hour = 23;
-      tm0.tm_min = 59;
-      tm0.tm_sec = 60;
+	tm0.tm_hour = 23;
+	tm0.tm_min = 59;
+	tm0.tm_sec = 60;
     }
     else if (tm0.tm_min < 0) {
-      tm0.tm_min = 0;
-      tm0.tm_sec = 0;
+	tm0.tm_min = 0;
+	tm0.tm_sec = 0;
     }
     else if (59 < tm0.tm_min) {
-      tm0.tm_min = 59;
-      tm0.tm_sec = 60;
+	tm0.tm_min = 59;
+	tm0.tm_sec = 60;
     }
     else if (tm0.tm_sec < 0) {
-      tm0.tm_sec = 0;
+	tm0.tm_sec = 0;
     }
     else if (60 < tm0.tm_sec) {
-      tm0.tm_sec = 60;
+	tm0.tm_sec = 60;
     }
 
     DEBUG_REPORT_GUESSRANGE;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]