ruby-changes:47039
From: ko1 <ko1@a...>
Date: Fri, 23 Jun 2017 14:55:16 +0900 (JST)
Subject: [ruby-changes:47039] ko1:r59154 (trunk): use NULL instead of 0.
ko1 2017-06-23 14:55:12 +0900 (Fri, 23 Jun 2017) New Revision: 59154 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59154 Log: use NULL instead of 0. Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 59153) +++ compile.c (revision 59154) @@ -3836,7 +3836,7 @@ add_ensure_iseq(LINK_ANCHOR *const ret, https://github.com/ruby/ruby/blob/trunk/compile.c#L3836 INIT_ANCHOR(ensure); while (enlp) { - if (enlp->erange != 0) { + if (enlp->erange != NULL) { DECL_ANCHOR(ensure_part); LABEL *lstart = NEW_LABEL(0); LABEL *lend = NEW_LABEL(0); @@ -4305,7 +4305,7 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK https://github.com/ruby/ruby/blob/trunk/compile.c#L4305 LABEL *tmp_label = NULL; ISEQ_COMPILE_DATA(iseq)->loopval_popped = 0; - push_ensure_entry(iseq, &enl, 0, 0); + push_ensure_entry(iseq, &enl, NULL, NULL); if (type == NODE_OPT_N || node->nd_state == 1) { ADD_INSNL(ret, line, jump, next_label); @@ -4762,7 +4762,7 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK https://github.com/ruby/ruby/blob/trunk/compile.c#L4762 ADD_LABEL(ret, lstart); CHECK(COMPILE_(ret, "ensure head", node->nd_head, popped)); ADD_LABEL(ret, lend); - if (ensr->anchor.next == 0) { + if (ensr->anchor.next == NULL) { ADD_INSN(ret, line, nop); } else { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/