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

ruby-changes:48383

From: ko1 <ko1@a...>
Date: Sat, 28 Oct 2017 09:45:49 +0900 (JST)
Subject: [ruby-changes:48383] ko1:r60497 (trunk): fix compile error.

ko1	2017-10-28 09:45:43 +0900 (Sat, 28 Oct 2017)

  New Revision: 60497

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

  Log:
    fix compile error.
    
    * compile.c (iseq_compile_each): fix declaration because VC shows compile error.

  Modified files:
    trunk/compile.c
Index: compile.c
===================================================================
--- compile.c	(revision 60496)
+++ compile.c	(revision 60497)
@@ -483,7 +483,7 @@ static INSN *new_insn_body(rb_iseq_t *is https://github.com/ruby/ruby/blob/trunk/compile.c#L483
 static LABEL *new_label_body(rb_iseq_t *iseq, long line);
 static ADJUST *new_adjust_body(rb_iseq_t *iseq, LABEL *label, int line);
 
-static int iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *const anchor, const NODE *n, int);
+static int iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *anchor, const NODE *n, int);
 static int iseq_setup(rb_iseq_t *iseq, LINK_ANCHOR *const anchor);
 static int iseq_optimize(rb_iseq_t *iseq, LINK_ANCHOR *const anchor);
 static int iseq_insns_unification(rb_iseq_t *iseq, LINK_ANCHOR *const anchor);
@@ -5110,7 +5110,7 @@ static int iseq_compile_each0(rb_iseq_t https://github.com/ruby/ruby/blob/trunk/compile.c#L5110
   popped: This node will be popped
  */
 static int
-iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, int popped)
+iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, const NODE *node, int popped)
 {
     if (node == 0) {
 	if (!popped) {

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

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