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

ruby-changes:22978

From: nobu <ko1@a...>
Date: Thu, 15 Mar 2012 10:39:52 +0900 (JST)
Subject: [ruby-changes:22978] nobu:r35027 (trunk): * adjust style.

nobu	2012-03-15 10:39:00 +0900 (Thu, 15 Mar 2012)

  New Revision: 35027

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

  Log:
    * adjust style.

  Modified files:
    trunk/ChangeLog
    trunk/addr2line.c
    trunk/numeric.c
    trunk/regparse.c
    trunk/vm_insnhelper.c
    trunk/vm_method.c

Index: regparse.c
===================================================================
--- regparse.c	(revision 35026)
+++ regparse.c	(revision 35027)
@@ -5670,7 +5670,8 @@
 }
 
 static int
-countbits(unsigned int bits) {
+countbits(unsigned int bits)
+{
   bits = (bits & 0x55555555) + ((bits >> 1) & 0x55555555);
   bits = (bits & 0x33333333) + ((bits >> 2) & 0x33333333);
   bits = (bits & 0x0f0f0f0f) + ((bits >> 4) & 0x0f0f0f0f);
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 35026)
+++ ChangeLog	(revision 35027)
@@ -6,6 +6,7 @@
 
 	* vm_eval.c (check_funcall):  Raise ArgumentError if respond_to?
 	  requires more than three arguments. [Bug #6000]
+
 	* test/ruby/test_object.rb (class TestObject):  Test for respond_to?
 	  requiring more than three arguments.
 
@@ -153,8 +154,6 @@
 
 Tue Mar 13 12:37:03 2012  Nobuyoshi Nakada  <nobu@r...>
 
-	Bug #5350
-
 	* gc.c: add ObjectSpace::WeakMap.  [ruby-dev:44565][Bug #5350]
 
 	* lib/weakref.rb: use WeakMap instead of _id2ref.
Index: addr2line.c
===================================================================
--- addr2line.c	(revision 35026)
+++ addr2line.c	(revision 35027)
@@ -87,7 +87,8 @@
 static char binary_filename[PATH_MAX];
 
 static unsigned long
-uleb128(char **p) {
+uleb128(char **p)
+{
     unsigned long r = 0;
     int s = 0;
     for (;;) {
@@ -103,7 +104,8 @@
 }
 
 static long
-sleb128(char **p) {
+sleb128(char **p)
+{
     long r = 0;
     int s = 0;
     for (;;) {
Index: vm_method.c
===================================================================
--- vm_method.c	(revision 35026)
+++ vm_method.c	(revision 35027)
@@ -941,7 +941,8 @@
 }
 
 st_index_t
-rb_hash_method_entry(st_index_t hash, const rb_method_entry_t *me) {
+rb_hash_method_entry(st_index_t hash, const rb_method_entry_t *me)
+{
     return rb_hash_method_definition(hash, me->def);
 }
 
Index: numeric.c
===================================================================
--- numeric.c	(revision 35026)
+++ numeric.c	(revision 35027)
@@ -843,7 +843,9 @@
  * An error will be raised if y == 0.
  */
 
-double ruby_float_mod(double x, double y) {
+double
+ruby_float_mod(double x, double y)
+{
     double mod;
     flodivmod(x, y, 0, &mod);
     return mod;
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 35026)
+++ vm_insnhelper.c	(revision 35027)
@@ -106,7 +106,8 @@
 
 /* method dispatch */
 static inline VALUE
-rb_arg_error_new(int argc, int min, int max) {
+rb_arg_error_new(int argc, int min, int max)
+{
     VALUE err_mess = 0;
     if (min == max) {
 	err_mess = rb_sprintf("wrong number of arguments (%d for %d)", argc, min);
@@ -164,7 +165,8 @@
 }
 
 void
-rb_error_arity(int argc, int min, int max) {
+rb_error_arity(int argc, int min, int max)
+{
     rb_exc_raise(rb_arg_error_new(argc, min, max));
 }
 

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

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