From b9cafaf5246fb240f52ebfce67ae2b72dd4eb363 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 6 Dec 2013 08:10:47 +0000 Subject: 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 --- internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal.h') 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 */ -- cgit v1.2.3