mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* array.c (rb_ary_sort_bang): respect overridden <=> for String and
Fixnum. [ruby-core:17708] * include/ruby/node.h (NOEX_BASIC): basic definition method flag. * include/ruby/intern.h, vm_method.c (rb_method_basic_definition_p): new function to check if the method is not redefined after the initialization. * vm_method.c (rb_obj_respond_to): use rb_method_basic_definition_p. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e370754189
commit
a58e3d763b
5 changed files with 65 additions and 17 deletions
|
@ -463,7 +463,8 @@ typedef struct RNode {
|
|||
#define NOEX_NOSUPER 0x01
|
||||
#define NOEX_PRIVATE 0x02
|
||||
#define NOEX_PROTECTED 0x04
|
||||
#define NOEX_MASK 0x06 /* 1110 */
|
||||
#define NOEX_MASK 0x06 /* 0110 */
|
||||
#define NOEX_BASIC 0x08
|
||||
|
||||
#define NOEX_UNDEF NOEX_NOSUPER
|
||||
|
||||
|
@ -472,7 +473,7 @@ typedef struct RNode {
|
|||
#define NOEX_VCALL 0x40
|
||||
|
||||
#define NOEX_SAFE(n) (((n) >> 8) & 0x0F)
|
||||
#define NOEX_WITH(n, s) ((s << 8) | n)
|
||||
#define NOEX_WITH(n, s) ((s << 8) | (n) | (ruby_running ? 0 : NOEX_BASIC))
|
||||
#define NOEX_WITH_SAFE(n) NOEX_WITH(n, rb_safe_level())
|
||||
|
||||
#define CALL_PUBLIC 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue