diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-12 03:17:43 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-12 03:17:43 +0000 |
commit | 55b1327d1b1ab126eca4bdf52ee817f08357530d (patch) | |
tree | f261aefbaa3b0909e36946925be65178e0921612 /parse.y | |
parent | 148743016f1fc68a9d419696085831e279fc70fb (diff) | |
download | ruby-55b1327d1b1ab126eca4bdf52ee817f08357530d.tar.gz ruby-55b1327d1b1ab126eca4bdf52ee817f08357530d.tar.xz ruby-55b1327d1b1ab126eca4bdf52ee817f08357530d.zip |
* 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
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8749,7 +8749,7 @@ static struct symbols { } global_symbols = {tLAST_TOKEN >> ID_SCOPE_SHIFT}; static const struct st_hash_type symhash = { - rb_str_cmp, + rb_str_hash_cmp, rb_str_hash, }; |