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

ruby-changes:55121

From: k0kubun <ko1@a...>
Date: Thu, 21 Mar 2019 15:00:00 +0900 (JST)
Subject: [ruby-changes:55121] k0kubun:r67328 (trunk): Make rb_iseq_only_optparam_p static

k0kubun	2019-03-21 14:59:57 +0900 (Thu, 21 Mar 2019)

  New Revision: 67328

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67328

  Log:
    Make rb_iseq_only_optparam_p static
    
    because it's not used outside vm*.c, and also having non-static function
    without MJIT_STATIC is harmful for mswin JIT system.
    
    I hope this fix mswin test failure starting from r67315.

  Modified files:
    trunk/vm_insnhelper.c
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 67327)
+++ vm_insnhelper.c	(revision 67328)
@@ -1703,7 +1703,7 @@ rb_simple_iseq_p(const rb_iseq_t *iseq) https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L1703
 	   iseq->body->param.flags.has_block == FALSE;
 }
 
-bool
+static bool
 rb_iseq_only_optparam_p(const rb_iseq_t *iseq)
 {
     return iseq->body->param.flags.has_opt == TRUE &&

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

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