ruby-changes:51017
From: nobu <ko1@a...>
Date: Sat, 21 Apr 2018 16:48:41 +0900 (JST)
Subject: [ruby-changes:51017] nobu:r63224 (trunk): compile.c: renamed macro arguments
nobu 2018-04-21 16:48:36 +0900 (Sat, 21 Apr 2018) New Revision: 63224 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63224 Log: compile.c: renamed macro arguments * compile.c (INSERT_BEFORE_INSN, INSERT_BEFORE_INSN1): rename argument `prev` as `next`. Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 63223) +++ compile.c (revision 63224) @@ -199,18 +199,18 @@ struct iseq_compile_data_ensure_node_sta https://github.com/ruby/ruby/blob/trunk/compile.c#L199 #define ADD_INSN(seq, line, insn) \ ADD_ELEM((seq), (LINK_ELEMENT *) new_insn_body(iseq, (line), BIN(insn), 0)) -/* insert an instruction before prev */ -#define INSERT_BEFORE_INSN(prev, line, insn) \ - ELEM_INSERT_PREV(&(prev)->link, (LINK_ELEMENT *) new_insn_body(iseq, (line), BIN(insn), 0)) +/* insert an instruction before next */ +#define INSERT_BEFORE_INSN(next, line, insn) \ + ELEM_INSERT_PREV(&(next)->link, (LINK_ELEMENT *) new_insn_body(iseq, (line), BIN(insn), 0)) /* add an instruction with some operands (1, 2, 3, 5) */ #define ADD_INSN1(seq, line, insn, op1) \ ADD_ELEM((seq), (LINK_ELEMENT *) \ new_insn_body(iseq, (line), BIN(insn), 1, (VALUE)(op1))) -/* insert an instruction with some operands (1, 2, 3, 5) before prev */ -#define INSERT_BEFORE_INSN1(prev, line, insn, op1) \ - ELEM_INSERT_PREV(&(prev)->link, (LINK_ELEMENT *) \ +/* insert an instruction with some operands (1, 2, 3, 5) before next */ +#define INSERT_BEFORE_INSN1(next, line, insn, op1) \ + ELEM_INSERT_PREV(&(next)->link, (LINK_ELEMENT *) \ new_insn_body(iseq, (line), BIN(insn), 1, (VALUE)(op1))) #define LABEL_REF(label) ((label)->refcnt++) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/