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

ruby-changes:26298

From: ko1 <ko1@a...>
Date: Thu, 13 Dec 2012 11:28:08 +0900 (JST)
Subject: [ruby-changes:26298] ko1:r38349 (trunk): * method.h: remove "VM_METHOD_TYPE__MAX" from rb_method_type_t.

ko1	2012-12-13 11:27:58 +0900 (Thu, 13 Dec 2012)

  New Revision: 38349

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

  Log:
    * method.h: remove "VM_METHOD_TYPE__MAX" from rb_method_type_t.
      rb_method_type_t is not a number and "_MAX" causes misunderstanding.
    * proc.c (rb_method_entry_arity): ditto.
    * vm_eval.c (vm_call0_body): ditto.
    * vm_insnhelper.c (vm_call_method): ditto.

  Modified files:
    trunk/ChangeLog
    trunk/method.h
    trunk/proc.c
    trunk/vm_eval.c
    trunk/vm_insnhelper.c

Index: method.h
===================================================================
--- method.h	(revision 38348)
+++ method.h	(revision 38349)
@@ -46,9 +46,7 @@ typedef enum { https://github.com/ruby/ruby/blob/trunk/method.h#L46
     VM_METHOD_TYPE_OPTIMIZED, /* Kernel#send, Proc#call, etc */
     VM_METHOD_TYPE_MISSING,   /* wrapper for method_missing(id) */
     VM_METHOD_TYPE_CFUNC_FRAMELESS,
-    VM_METHOD_TYPE_REFINED,
-
-    VM_METHOD_TYPE__MAX
+    VM_METHOD_TYPE_REFINED
 } rb_method_type_t;
 
 struct rb_call_info_struct;
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38348)
+++ ChangeLog	(revision 38349)
@@ -1,3 +1,14 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Dec 13 11:22:33 2012  Koichi Sasada  <ko1@a...>
+
+	* method.h: remove "VM_METHOD_TYPE__MAX" from rb_method_type_t.
+	  rb_method_type_t is not a number and "_MAX" causes misunderstanding.
+
+	* proc.c (rb_method_entry_arity): ditto.
+
+	* vm_eval.c (vm_call0_body): ditto.
+
+	* vm_insnhelper.c (vm_call_method): ditto.
+
 Wed Dec 12 21:40:45 2012  Nobuyoshi Nakada  <nobu@r...>
 
 	* lib/tmpdir.rb (Dir::Tmpname#create): deal with a prefix name which
Index: vm_eval.c
===================================================================
--- vm_eval.c	(revision 38348)
+++ vm_eval.c	(revision 38349)
@@ -227,8 +227,6 @@ vm_call0_body(rb_thread_t* th, rb_call_i https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L227
 	}
       case VM_METHOD_TYPE_UNDEF:
 	break;
-      case VM_METHOD_TYPE__MAX:
-	break;
     }
     rb_bug("vm_call0: unsupported method type (%d)", ci->me->def->type);
     return Qundef;
Index: proc.c
===================================================================
--- proc.c	(revision 38348)
+++ proc.c	(revision 38349)
@@ -1686,8 +1686,6 @@ rb_method_entry_arity(const rb_method_en https://github.com/ruby/ruby/blob/trunk/proc.c#L1686
       }
       case VM_METHOD_TYPE_REFINED:
 	return -1;
-      case VM_METHOD_TYPE__MAX:
-	break;
     }
     rb_bug("rb_method_entry_arity: invalid method entry type (%d)", def->type);
 
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 38348)
+++ vm_insnhelper.c	(revision 38349)
@@ -1786,8 +1786,6 @@ vm_call_method(rb_thread_t *th, rb_contr https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L1786
 		    goto zsuper_method_dispatch;
 		}
 	      }
-	      case VM_METHOD_TYPE__MAX:
-		break;
 	    }
 	    rb_bug("vm_call_method: unsupported method type (%d)", ci->me->def->type);
 	}

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

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