diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-30 12:22:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-30 12:22:17 +0000 |
commit | c683096c90a0690f7e5c95f5e3e3f3e775bea08d (patch) | |
tree | dbe0065cfb17d094989d5856cb902cca4bd146f4 /internal.h | |
parent | adf511efc635e53272dc2ce9094d1a579fa2ff3c (diff) | |
download | ruby-c683096c90a0690f7e5c95f5e3e3f3e775bea08d.tar.gz |
vm_insnhelper.c: keyword hash functions
* vm_insnhelper.c (rb_extract_keywords, rb_check_keyword_opthash):
extract from vm_callee_setup_keyword_arg.
* class.c (rb_scan_args): check if keys of keyword hash are symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 3612a98929..43a08a6063 100644 --- a/internal.h +++ b/internal.h @@ -758,6 +758,8 @@ VALUE rb_check_funcall_with_hook(VALUE recv, ID mid, int argc, const VALUE *argv /* 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); +VALUE rb_extract_keywords(VALUE *orighash); /* vm_method.c */ void Init_eval_method(void); |