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

ruby-changes:26937

From: nobu <ko1@a...>
Date: Wed, 30 Jan 2013 15:20:36 +0900 (JST)
Subject: [ruby-changes:26937] nobu:r38989 (trunk): ChangeLog, range.c: adjust indent and style

nobu	2013-01-30 15:20:26 +0900 (Wed, 30 Jan 2013)

  New Revision: 38989

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

  Log:
    ChangeLog, range.c: adjust indent and style

  Modified files:
    trunk/ChangeLog
    trunk/range.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38988)
+++ ChangeLog	(revision 38989)
@@ -27,7 +27,7 @@ Wed Jan 30 14:10:52 2013  Marc-Andre Laf https://github.com/ruby/ruby/blob/trunk/ChangeLog#L27
 Wed Jan 30 13:53:43 2013  Marc-Andre Lafortune  <ruby-core@m...>
 
 	* lib/matrix.rb: Take conjugate for inner product
-	[rubyspec:5a01ad5719f2] [ruby-dev:46101]
+	  [rubyspec:5a01ad5719f2] [ruby-dev:46101]
 
 Wed Jan 30 13:22:05 2013  Nobuyoshi Nakada  <nobu@r...>
 
Index: range.c
===================================================================
--- range.c	(revision 38988)
+++ range.c	(revision 38989)
@@ -473,24 +473,27 @@ range_step(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/range.c#L473
 
 #if SIZEOF_DOUBLE == 8 && defined(HAVE_INT64_T)
 union int64_double {
-	int64_t i;
-	double d;
+    int64_t i;
+    double d;
 };
 
 static VALUE
-int64_as_double_to_num(int64_t i) {
+int64_as_double_to_num(int64_t i)
+{
     union int64_double convert;
     if (i < 0) {
 	convert.i = -i;
 	return DBL2NUM(-convert.d);
-    } else {
+    }
+    else {
 	convert.i = i;
 	return DBL2NUM(convert.d);
     }
 }
 
 static int64_t
-double_as_int64(double d) {
+double_as_int64(double d)
+{
     union int64_double convert;
     convert.d = fabs(d);
     return d < 0 ? -convert.i : convert.i;
@@ -498,7 +501,8 @@ double_as_int64(double d) { https://github.com/ruby/ruby/blob/trunk/range.c#L501
 #endif
 
 static int
-is_integer_p(VALUE v) {
+is_integer_p(VALUE v)
+{
     VALUE is_int = rb_check_funcall(v, id_integer_p, 0, 0);
     return RTEST(is_int) && is_int != Qundef;
 }

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

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