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

ruby-changes:58857

From: Nobuyoshi <ko1@a...>
Date: Wed, 20 Nov 2019 16:28:54 +0900 (JST)
Subject: [ruby-changes:58857] fc22b0eaa3 (master): Always forward declaration is needed

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

From fc22b0eaa3fa073f622917364cbb573cd6ba2bfc Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 20 Nov 2019 16:27:57 +0900
Subject: Always forward declaration is needed

`rb_resolve_refined_method_callable` is referenced in
`refine_sym_proc_call`, even when pre-compiling mjit header on
mswin.

diff --git a/vm_args.c b/vm_args.c
index d0b44c7..78a0f0d 100644
--- a/vm_args.c
+++ b/vm_args.c
@@ -15,8 +15,9 @@ VALUE rb_keyword_error_new(const char *error, VALUE keys); /* class.c */ https://github.com/ruby/ruby/blob/trunk/vm_args.c#L15
 static VALUE method_missing(VALUE obj, ID id, int argc, const VALUE *argv,
                             enum method_missing_reason call_status, int kw_splat);
 #if !defined(_MSC_VER) || !defined(MJIT_HEADER)
-MJIT_FUNC_EXPORTED const rb_callable_method_entry_t *rb_resolve_refined_method_callable(VALUE refinements, const rb_callable_method_entry_t *me);
+MJIT_FUNC_EXPORTED
 #endif
+const rb_callable_method_entry_t *rb_resolve_refined_method_callable(VALUE refinements, const rb_callable_method_entry_t *me);
 
 struct args_info {
     /* basic args info */
-- 
cgit v0.10.2


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

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