From 302c311199c80ac9094dfa2b9781e6240f6a3092 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 10 Jul 2007 10:39:39 +0000 Subject: * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@12734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/intern.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 1e45f2d977..9d8034a333 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); -- cgit v1.2.3