summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-05-07 00:04:36 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-05-07 00:04:36 +0900
commit0bbab1e5151c3396ebe544d09cad997cd9cb5e3b (patch)
tree9ca2db82ab1b42c3902733d640228bb8eeb5f638 /vm_insnhelper.c
parent99644514db3768e4fd47d6ff9111091ab1a5a6d2 (diff)
Protoized old pre-ANSI K&R style declarations and definitions
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 840bd490b6..171b0f4273 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1857,7 +1857,7 @@ vm_search_method(VALUE cd_owner, struct rb_call_data *cd, VALUE recv)
}
static inline int
-check_cfunc(const rb_callable_method_entry_t *me, VALUE (*func)())
+check_cfunc(const rb_callable_method_entry_t *me, VALUE (*func)(ANYARGS))
{
if (! me) {
return false;
@@ -1876,7 +1876,7 @@ check_cfunc(const rb_callable_method_entry_t *me, VALUE (*func)())
}
static inline int
-vm_method_cfunc_is(const rb_iseq_t *iseq, CALL_DATA cd, VALUE recv, VALUE (*func)())
+vm_method_cfunc_is(const rb_iseq_t *iseq, CALL_DATA cd, VALUE recv, VALUE (*func)(ANYARGS))
{
VM_ASSERT(iseq != NULL);
const struct rb_callcache *cc = vm_search_method((VALUE)iseq, cd, recv);