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

ruby-changes:29105

From: akr <ko1@a...>
Date: Sat, 8 Jun 2013 06:16:29 +0900 (JST)
Subject: [ruby-changes:29105] akr:r41157 (trunk): * random.c (numberof): Removed.

akr	2013-06-08 06:16:12 +0900 (Sat, 08 Jun 2013)

  New Revision: 41157

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

  Log:
    * random.c (numberof): Removed.

  Modified files:
    trunk/ChangeLog
    trunk/random.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41156)
+++ ChangeLog	(revision 41157)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jun  8 06:15:46 2013  Tanaka Akira  <akr@f...>
+
+	* random.c (numberof): Removed.
+
 Sat Jun  8 06:00:47 2013  Tanaka Akira  <akr@f...>
 
 	* random.c: include internal.h.
Index: random.c
===================================================================
--- random.c	(revision 41156)
+++ random.c	(revision 41157)
@@ -271,7 +271,6 @@ rb_genrand_real(void) https://github.com/ruby/ruby/blob/trunk/random.c#L271
 #define BDIGMAX ((BDIGIT)-1)
 
 #define roomof(n, m) (int)(((n)+(m)-1) / (m))
-#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
 #define SIZEOF_INT32 (31/CHAR_BIT + 1)
 
 static double

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

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