diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-04 18:29:55 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-04 18:29:55 +0000 |
| commit | a835b366d9e4f18d466c0a79118d8a4c0a883083 (patch) | |
| tree | 818b12fe58c2e072fd79c3d6ca057e4f88d25518 /include/ruby/intern.h | |
| parent | 3db369cc6df77493496e9ea9e736b2ac8d8d2f5b (diff) | |
| download | ruby-a835b366d9e4f18d466c0a79118d8a4c0a883083.tar.gz ruby-a835b366d9e4f18d466c0a79118d8a4c0a883083.tar.xz ruby-a835b366d9e4f18d466c0a79118d8a4c0a883083.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@18360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/intern.h')
| -rw-r--r-- | include/ruby/intern.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index b84ed3c8f..243e7015a 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -250,6 +250,7 @@ void rb_clear_cache_by_class(VALUE); void rb_alias(VALUE, ID, ID); void rb_attr(VALUE,ID,int,int,int); int rb_method_boundp(VALUE, ID, int); +int rb_method_basic_definition_p(VALUE, ID); VALUE rb_eval_cmd(VALUE, VALUE, int); int rb_obj_respond_to(VALUE, ID, int); int rb_respond_to(VALUE, ID); |
