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

ruby-changes:25473

From: nobu <ko1@a...>
Date: Wed, 7 Nov 2012 08:10:55 +0900 (JST)
Subject: [ruby-changes:25473] nobu:r37530 (trunk): adjust style

nobu	2012-11-07 07:50:30 +0900 (Wed, 07 Nov 2012)

  New Revision: 37530

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

  Log:
    adjust style

  Modified files:
    trunk/enumerator.c
    trunk/numeric.c
    trunk/vm_eval.c
    trunk/vm_insnhelper.c

Index: enumerator.c
===================================================================
--- enumerator.c	(revision 37529)
+++ enumerator.c	(revision 37530)
@@ -1625,7 +1625,8 @@
 }
 
 static VALUE
-lazy_take_size(VALUE lazy) {
+lazy_take_size(VALUE lazy)
+{
     long len = NUM2LONG(RARRAY_PTR(rb_ivar_get(lazy, id_arguments))[0]);
     VALUE receiver = lazy_receiver_size(lazy);
     if (NIL_P(receiver) || (FIXNUM_P(receiver) && FIX2LONG(receiver) < len))
@@ -1674,7 +1675,8 @@
 }
 
 static VALUE
-lazy_drop_size(VALUE lazy) {
+lazy_drop_size(VALUE lazy)
+{
     long len = NUM2LONG(RARRAY_PTR(rb_ivar_get(lazy, id_arguments))[0]);
     VALUE receiver = lazy_receiver_size(lazy);
     if (NIL_P(receiver))
@@ -1741,7 +1743,8 @@
 }
 
 static VALUE
-lazy_cycle_size(VALUE lazy) {
+lazy_cycle_size(VALUE lazy)
+{
     return enum_cycle_size(rb_ivar_get(lazy, id_receiver), rb_ivar_get(lazy, id_arguments));
 }
 
Index: vm_eval.c
===================================================================
--- vm_eval.c	(revision 37529)
+++ vm_eval.c	(revision 37530)
@@ -921,7 +921,8 @@
 }
 
 static VALUE
-rb_f_loop_size(VALUE self, VALUE args) {
+rb_f_loop_size(VALUE self, VALUE args)
+{
     return DBL2NUM(INFINITY);
 }
 
Index: numeric.c
===================================================================
--- numeric.c	(revision 37529)
+++ numeric.c	(revision 37530)
@@ -1721,7 +1721,8 @@
 }
 
 static double
-ruby_float_step_size(double beg, double end, double unit, int excl) {
+ruby_float_step_size(double beg, double end, double unit, int excl)
+{
     const double epsilon = DBL_EPSILON;
     double n = (end - beg)/unit;
     double err = (fabs(beg) + fabs(end) + fabs(end-beg)) / fabs(unit) * epsilon;
@@ -1765,7 +1766,8 @@
 }
 
 VALUE
-num_interval_step_size(VALUE from, VALUE to, VALUE step, int excl) {
+num_interval_step_size(VALUE from, VALUE to, VALUE step, int excl)
+{
     if (FIXNUM_P(from) && FIXNUM_P(to) && FIXNUM_P(step)) {
 	long delta, diff, result;
 
@@ -1796,7 +1798,8 @@
 }
 
 static VALUE
-num_step_size(VALUE from, VALUE args) {
+num_step_size(VALUE from, VALUE args)
+{
     VALUE to = RARRAY_PTR(args)[0];
     VALUE step = (RARRAY_LEN(args) > 1) ? RARRAY_PTR(args)[1] : INT2FIX(1);
     return num_interval_step_size(from, to, step, FALSE);
@@ -3381,7 +3384,8 @@
 }
 
 static VALUE
-int_upto_size(VALUE from, VALUE args) {
+int_upto_size(VALUE from, VALUE args)
+{
     return num_interval_step_size(from, RARRAY_PTR(args)[0], INT2FIX(1), FALSE);
 }
 
@@ -3427,7 +3431,8 @@
 }
 
 static VALUE
-int_downto_size(VALUE from, VALUE args) {
+int_downto_size(VALUE from, VALUE args)
+{
     return num_interval_step_size(from, RARRAY_PTR(args)[0], INT2FIX(-1), FALSE);
 }
 
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 37529)
+++ vm_insnhelper.c	(revision 37530)
@@ -1409,7 +1409,8 @@
 static int vm_profile_counter[4];
 #define VM_PROFILE_UP(x) (vm_profile_counter[x]++)
 #define VM_PROFILE_ATEXIT() atexit(vm_profile_show_result)
-static void vm_profile_show_result(void) {
+static void vm_profile_show_result(void)
+{
     fprintf(stderr, "VM Profile results: \n");
     fprintf(stderr, "r->c call: %d\n", vm_profile_counter[0]);
     fprintf(stderr, "r->c popf: %d\n", vm_profile_counter[1]);

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

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