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

ruby-changes:12949

From: nobu <ko1@a...>
Date: Fri, 28 Aug 2009 09:45:43 +0900 (JST)
Subject: [ruby-changes:12949] Ruby:r24689 (trunk): * proc.c (rb_method_entry_arity): fixed indent.

nobu	2009-08-28 09:45:27 +0900 (Fri, 28 Aug 2009)

  New Revision: 24689

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

  Log:
    * proc.c (rb_method_entry_arity): fixed indent.

  Modified files:
    trunk/proc.c

Index: proc.c
===================================================================
--- proc.c	(revision 24688)
+++ proc.c	(revision 24689)
@@ -1479,24 +1479,24 @@
       case VM_METHOD_TYPE_BMETHOD:
 	return rb_proc_arity(me->body.proc);
       case VM_METHOD_TYPE_ISEQ: {
-	  rb_iseq_t *iseq = me->body.iseq;
-	  if (iseq->arg_rest == -1 && iseq->arg_opts == 0) {
-	      return iseq->argc;
-	  }
-	  else {
-	      return -(iseq->argc + 1 + iseq->arg_post_len);
-	  }
+	rb_iseq_t *iseq = me->body.iseq;
+	if (iseq->arg_rest == -1 && iseq->arg_opts == 0) {
+	    return iseq->argc;
+	}
+	else {
+	    return -(iseq->argc + 1 + iseq->arg_post_len);
+	}
       }
       case VM_METHOD_TYPE_UNDEF:
       case VM_METHOD_TYPE_NOTIMPLEMENTED:
 	return 0;
       case VM_METHOD_TYPE_OPTIMIZED: {
-	  switch (me->body.optimize_type) {
-	    case OPTIMIZED_METHOD_TYPE_SEND:
-	      return -1;
-	    default:
-	      break;
-	  }
+	switch (me->body.optimize_type) {
+	  case OPTIMIZED_METHOD_TYPE_SEND:
+	    return -1;
+	  default:
+	    break;
+	}
       }
     }
     rb_bug("rb_method_entry_arity: invalid method entry type (%d)", me->type);

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

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