зеркало из https://github.com/github/ruby.git
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
6f8bce9eff
Коммит
33fedef5a5
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
Thu Dec 13 11:22:33 2012 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* 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@ruby-lang.org>
|
||||
|
||||
* lib/tmpdir.rb (Dir::Tmpname#create): deal with a prefix name which
|
||||
|
|
4
method.h
4
method.h
|
@ -46,9 +46,7 @@ typedef enum {
|
|||
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;
|
||||
|
|
2
proc.c
2
proc.c
|
@ -1686,8 +1686,6 @@ rb_method_entry_arity(const rb_method_entry_t *me)
|
|||
}
|
||||
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);
|
||||
|
||||
|
|
|
@ -227,8 +227,6 @@ vm_call0_body(rb_thread_t* th, rb_call_info_t *ci, const VALUE *argv)
|
|||
}
|
||||
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;
|
||||
|
|
|
@ -1786,8 +1786,6 @@ vm_call_method(rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci)
|
|||
goto zsuper_method_dispatch;
|
||||
}
|
||||
}
|
||||
case VM_METHOD_TYPE__MAX:
|
||||
break;
|
||||
}
|
||||
rb_bug("vm_call_method: unsupported method type (%d)", ci->me->def->type);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче