mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* hash.c (hash_equal): should call rb_eql when argument eql is set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bf6575ef62
commit
f4d9d3d39b
3 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Fri Sep 21 02:02:34 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* hash.c (hash_equal): should call rb_eql when argument eql is set.
|
||||||
|
|
||||||
Thu Sep 20 17:28:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Sep 20 17:28:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* io.c (popen_exec), process.c (rb_spawn): stop other threads before
|
* io.c (popen_exec), process.c (rb_spawn): stop other threads before
|
||||||
|
|
3
hash.c
3
hash.c
|
@ -1398,6 +1398,9 @@ hash_equal(VALUE hash1, VALUE hash2, int eql)
|
||||||
if (!rb_respond_to(hash2, rb_intern("to_hash"))) {
|
if (!rb_respond_to(hash2, rb_intern("to_hash"))) {
|
||||||
return Qfalse;
|
return Qfalse;
|
||||||
}
|
}
|
||||||
|
if (eql)
|
||||||
|
return rb_eql(hash2, hash1);
|
||||||
|
else
|
||||||
return rb_equal(hash2, hash1);
|
return rb_equal(hash2, hash1);
|
||||||
}
|
}
|
||||||
if (RHASH_SIZE(hash1) != RHASH_SIZE(hash2))
|
if (RHASH_SIZE(hash1) != RHASH_SIZE(hash2))
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#define RUBY_VERSION "1.9.0"
|
#define RUBY_VERSION "1.9.0"
|
||||||
#define RUBY_RELEASE_DATE "2007-09-20"
|
#define RUBY_RELEASE_DATE "2007-09-21"
|
||||||
#define RUBY_VERSION_CODE 190
|
#define RUBY_VERSION_CODE 190
|
||||||
#define RUBY_RELEASE_CODE 20070920
|
#define RUBY_RELEASE_CODE 20070921
|
||||||
#define RUBY_PATCHLEVEL 0
|
#define RUBY_PATCHLEVEL 0
|
||||||
|
|
||||||
#define RUBY_VERSION_MAJOR 1
|
#define RUBY_VERSION_MAJOR 1
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
#define RUBY_VERSION_TEENY 0
|
#define RUBY_VERSION_TEENY 0
|
||||||
#define RUBY_RELEASE_YEAR 2007
|
#define RUBY_RELEASE_YEAR 2007
|
||||||
#define RUBY_RELEASE_MONTH 9
|
#define RUBY_RELEASE_MONTH 9
|
||||||
#define RUBY_RELEASE_DAY 20
|
#define RUBY_RELEASE_DAY 21
|
||||||
|
|
||||||
#ifdef RUBY_EXTERN
|
#ifdef RUBY_EXTERN
|
||||||
RUBY_EXTERN const char ruby_version[];
|
RUBY_EXTERN const char ruby_version[];
|
||||||
|
|
Loading…
Reference in a new issue