diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-19 08:22:45 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-19 08:22:45 +0000 |
commit | 9b87685aa2dd3351344228eb32c9b90d85994cf6 (patch) | |
tree | c182a1fc65de2b4cc91756560a12aa8b202cb9c1 /include | |
parent | 284d42ca251cb73a939032cedf834c995b1f6145 (diff) | |
download | ruby-9b87685aa2dd3351344228eb32c9b90d85994cf6.tar.gz ruby-9b87685aa2dd3351344228eb32c9b90d85994cf6.tar.xz ruby-9b87685aa2dd3351344228eb32c9b90d85994cf6.zip |
* io.c (rb_io_extract_encoding_option): "internal_encoding: nil"
to specify no-transcoding. and other corner case fixed.
[ruby-dev:37496]
* hash.c (rb_hash_lookup2): new function to look-up hash with
default value.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-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 d7ef17023..661b1a5b2 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -359,6 +359,7 @@ VALUE rb_hash_dup(VALUE); VALUE rb_hash_freeze(VALUE); VALUE rb_hash_aref(VALUE, VALUE); VALUE rb_hash_lookup(VALUE, VALUE); +VALUE rb_hash_lookup2(VALUE, VALUE, VALUE); VALUE rb_hash_fetch(VALUE, VALUE); VALUE rb_hash_aset(VALUE, VALUE, VALUE); VALUE rb_hash_delete_if(VALUE); |