diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-06 08:10:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-06 08:10:47 +0000 |
commit | b9cafaf5246fb240f52ebfce67ae2b72dd4eb363 (patch) | |
tree | 842609f74c880929bf3644ca9101e632341df086 /internal.h | |
parent | c7572f2fe777c96880905ee37ab313cd52b5aa51 (diff) | |
download | ruby-b9cafaf5246fb240f52ebfce67ae2b72dd4eb363.tar.gz |
vm_insnhelper.c: rb_get_kwargs
* vm_insnhelper.c (rb_get_kwargs): get keyword argument values from an
option hash, not only checking keys.
* dir.c (dir_initialize): use rb_get_kwargs.
* gc.c (gc_start_internal): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal.h b/internal.h index 0c9427b202..2b8176c28b 100644 --- a/internal.h +++ b/internal.h @@ -775,7 +775,7 @@ VALUE rb_catch_protect(VALUE t, rb_block_call_func *func, VALUE data, int *state /* vm_insnhelper.c */ VALUE rb_equal_opt(VALUE obj1, VALUE obj2); -void rb_check_keyword_opthash(VALUE keyword_hash, const ID *table, int required, int optional); +int rb_get_kwargs(VALUE keyword_hash, const ID *table, int required, int optional, VALUE *); VALUE rb_extract_keywords(VALUE *orighash); /* vm_method.c */ |