[前][次][番号順一覧][スレッド一覧]

ruby-changes:57583

From: Yusuke <ko1@a...>
Date: Fri, 6 Sep 2019 10:15:10 +0900 (JST)
Subject: [ruby-changes:57583] a23ddf7ff5 (master): vm_argc.c (vm_caller_setup_arg_kw): "cfunc" argument is no longer used

https://git.ruby-lang.org/ruby.git/commit/?id=a23ddf7ff5

From a23ddf7ff58ec77548d2ecd7f9f202aa3eff9fc7 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Thu, 5 Sep 2019 16:24:46 +0900
Subject: vm_argc.c (vm_caller_setup_arg_kw): "cfunc" argument is no longer
 used


diff --git a/vm_args.c b/vm_args.c
index add5dd5..5f8eb12 100644
--- a/vm_args.c
+++ b/vm_args.c
@@ -969,7 +969,7 @@ vm_caller_setup_arg_splat(rb_control_frame_t *cfp, struct rb_calling_info *calli https://github.com/ruby/ruby/blob/trunk/vm_args.c#L969
 }
 
 static inline void
-vm_caller_setup_arg_kw(rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, int cfunc)
+vm_caller_setup_arg_kw(rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci)
 {
     struct rb_call_info_with_kwarg *ci_kw = (struct rb_call_info_with_kwarg *)ci;
     const VALUE *const passed_keywords = ci_kw->kw_arg->keywords;
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 5730007..577b08a 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1746,7 +1746,7 @@ CALLER_SETUP_ARG(struct rb_control_frame_struct *restrict cfp, https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L1746
         vm_caller_setup_arg_splat(cfp, calling);
     }
     if (UNLIKELY(IS_ARGS_KEYWORD(ci))) {
-        vm_caller_setup_arg_kw(cfp, calling, ci, cfunc);
+        vm_caller_setup_arg_kw(cfp, calling, ci);
     }
 }
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]