diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-22 09:37:13 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-22 09:37:13 +0000 |
commit | 1c09bfad5c6dc798c53732095374ab27b7b0f59c (patch) | |
tree | 80188ebdcc7f50118a2c882d19d01d19c420417c /hash.c | |
parent | d0133e413db7a3b4ca7982f5c5548b47f68700ac (diff) | |
download | ruby-1c09bfad5c6dc798c53732095374ab27b7b0f59c.tar.gz |
* eval.c (rb_with_disable_interrupt): use ENABLE_INTS instead of
ALLOW_INTS which may switch context. [ruby-dev:22319]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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; |