diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-10 10:39:39 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-10 10:39:39 +0000 |
| commit | 30717936b6d8e6761ff131453b2fecc377bf8e4e (patch) | |
| tree | a9036b0f7aa362e05dc1603d7c1598bf44dc309a /include/ruby | |
| parent | 177c7167e5cb15091e901854024b051a5b7f9bfa (diff) | |
| download | ruby-30717936b6d8e6761ff131453b2fecc377bf8e4e.tar.gz ruby-30717936b6d8e6761ff131453b2fecc377bf8e4e.tar.xz ruby-30717936b6d8e6761ff131453b2fecc377bf8e4e.zip | |
* hash.c (rb_hash_lookup): added. this function is similar to
rb_hash_aref(), but doesn't call Hash#default when no entry
exists.
* include/ruby/intern.h: ditto.
* insnhelper.ci (lfp_svar_get): use rb_hash_lookup().
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
| -rw-r--r-- | include/ruby/intern.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 1e45f2d97..9d8034a33 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -329,6 +329,7 @@ VALUE rb_hash(VALUE); VALUE rb_hash_new(void); VALUE rb_hash_freeze(VALUE); VALUE rb_hash_aref(VALUE, VALUE); +VALUE rb_hash_lookup(VALUE, VALUE); VALUE rb_hash_aset(VALUE, VALUE, VALUE); VALUE rb_hash_delete_if(VALUE); VALUE rb_hash_delete(VALUE,VALUE); |
