зеркало из https://github.com/github/ruby.git
vm_method.c: change argument of set_visibility
* vm_method.c (set_visibility): use rb_method_flag_t as well as set_method_visibility() and rename argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7708560bb1
Коммит
64ed7df543
|
@ -1291,14 +1291,14 @@ set_method_visibility(VALUE self, int argc, VALUE *argv, rb_method_flag_t ex)
|
|||
}
|
||||
|
||||
static VALUE
|
||||
set_visibility(int argc, VALUE *argv, VALUE module, int visi)
|
||||
set_visibility(int argc, VALUE *argv, VALUE module, rb_method_flag_t ex)
|
||||
{
|
||||
secure_visibility(module);
|
||||
if (argc == 0) {
|
||||
SCOPE_SET(visi);
|
||||
SCOPE_SET(ex);
|
||||
}
|
||||
else {
|
||||
set_method_visibility(module, argc, argv, visi);
|
||||
set_method_visibility(module, argc, argv, ex);
|
||||
}
|
||||
return module;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче