From 55b1327d1b1ab126eca4bdf52ee817f08357530d Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 12 Feb 2008 03:17:43 +0000 Subject: * string.c (rb_str_hash_cmp): lighter version of rb_str_cmp() for hash comparison function. * hash.c (rb_any_cmp): use rb_str_hash_cmp(). * string.c (rb_str_casecmp): should return nil for incompatible comparison. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/intern.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/ruby') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 80c3cd381..dd259e8fe 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -528,6 +528,7 @@ VALUE rb_str_append(VALUE, VALUE); VALUE rb_str_concat(VALUE, VALUE); int rb_memhash(const void *ptr, long len); int rb_str_hash(VALUE); +int rb_str_hash_cmp(VALUE,VALUE); int rb_str_comparable(VALUE, VALUE); int rb_str_cmp(VALUE, VALUE); VALUE rb_str_equal(VALUE str1, VALUE str2); -- cgit