From 687dfb2ac2c9768b2cb05ad8a0653aebb31eb23a Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 22 Dec 2003 09:37:13 +0000 Subject: * eval.c (rb_with_disable_interrupt): use ENABLE_INTS instead of ALLOW_INTS which may switch context. [ruby-dev:22319] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 102682c0b..36fbed0e5 100644 --- a/hash.c +++ b/hash.c @@ -46,13 +46,6 @@ VALUE rb_cHash; static VALUE envtbl; static ID id_hash, id_call, id_default; -VALUE -rb_hash(obj) - VALUE obj; -{ - return rb_funcall(obj, id_hash, 0); -} - static VALUE eql(args) VALUE *args; @@ -84,6 +77,13 @@ rb_any_cmp(a, b) return !rb_with_disable_interrupt(eql, (VALUE)args); } +VALUE +rb_hash(obj) + VALUE obj; +{ + return rb_funcall(obj, id_hash, 0); +} + static int rb_any_hash(a) VALUE a; -- cgit