From f09bd390321cbfecb65b2e9f8dace0a7cb4d3788 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 21 May 2002 05:39:19 +0000 Subject: * object.c (Init_Object): should do exact match for Module#==. * compar.c (cmp_eq): returns 'false' if <=> returns 'nil'. * compar.c (cmp_gt,cmp_ge,cmp_lt,cmp_le,cmp_between): ditto. * pack.c (pack_pack): should propagate taintedness. * pack.c (pack_unpack): ditto. * eval.c (rb_thread_schedule): need to preserve errno before calling rb_trap_exec(). * regex.c (calculate_must_string): a bug in charset/charset_not parsing. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'hash.c') diff --git a/hash.c b/hash.c index af1d832a2..f51f46b04 100644 --- a/hash.c +++ b/hash.c @@ -55,6 +55,19 @@ eql(args) return (VALUE)rb_eql(args[0], args[1]); } +static VALUE +eql_failed() +{ + return Qfalse; +} + +static VALUE +any_eql(args) + VALUE *args; +{ + return rb_rescue(eql, (VALUE)args, eql_failed, 0); +} + static int rb_any_cmp(a, b) VALUE a, b; -- cgit