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

ruby-changes:19341

From: kosaki <ko1@a...>
Date: Fri, 29 Apr 2011 12:23:19 +0900 (JST)
Subject: [ruby-changes:19341] Ruby:r31381 (trunk): fix indentation

kosaki	2011-04-29 12:23:13 +0900 (Fri, 29 Apr 2011)

  New Revision: 31381

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

  Log:
    fix indentation

  Modified files:
    trunk/thread.c

Index: thread.c
===================================================================
--- thread.c	(revision 31380)
+++ thread.c	(revision 31381)
@@ -3210,22 +3210,22 @@
 
 static struct timespec init_lock_timeout(int timeout_ms)
 {
-	struct timespec ts;
-	struct timeval tv;
-	int ret;
+    struct timespec ts;
+    struct timeval tv;
+    int ret;
 
-	ret = gettimeofday(&tv, NULL);
-	if (ret < 0)
-	    rb_sys_fail(0);
+    ret = gettimeofday(&tv, NULL);
+    if (ret < 0)
+	rb_sys_fail(0);
 
-	ts.tv_sec = tv.tv_sec;
-	ts.tv_nsec = tv.tv_usec * 1000 + timeout_ms * 1000 * 1000;
-	if (ts.tv_nsec >= 1000000000) {
-	    ts.tv_sec++;
-	    ts.tv_nsec -= 1000000000;
-	}
+    ts.tv_sec = tv.tv_sec;
+    ts.tv_nsec = tv.tv_usec * 1000 + timeout_ms * 1000 * 1000;
+    if (ts.tv_nsec >= 1000000000) {
+	ts.tv_sec++;
+	ts.tv_nsec -= 1000000000;
+    }
 
-	return ts;
+    return ts;
 }
 
 static int

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

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