From 3c0bb8d6f4ece61843f4a26b115e6555d2bbc913 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 23 Feb 2016 07:59:17 +0000 Subject: iseq.h: remove trailing comma * iseq.h (iseq_mark_ary_index): get rid of trailing comma and name the magic number for iseq_mark_ary_create. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- iseq.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'iseq.h') diff --git a/iseq.h b/iseq.h index b316ea41b9..945e7cb58d 100644 --- a/iseq.h +++ b/iseq.h @@ -27,15 +27,16 @@ rb_call_info_kw_arg_bytes(int keyword_len) } enum iseq_mark_ary_index { - ISEQ_MARK_ARY_COVERAGE = 0, - ISEQ_MARK_ARY_FLIP_CNT = 1, - ISEQ_MARK_ARY_ORIGINAL_ISEQ = 2, + ISEQ_MARK_ARY_COVERAGE, + ISEQ_MARK_ARY_FLIP_CNT, + ISEQ_MARK_ARY_ORIGINAL_ISEQ, + ISEQ_MARK_ARY_INITIAL_SIZE }; static inline VALUE iseq_mark_ary_create(int flip_cnt) { - VALUE ary = rb_ary_tmp_new(3); + VALUE ary = rb_ary_tmp_new(ISEQ_MARK_ARY_INITIAL_SIZE); rb_ary_push(ary, Qnil); /* ISEQ_MARK_ARY_COVERAGE */ rb_ary_push(ary, INT2FIX(flip_cnt)); /* ISEQ_MARK_ARY_FLIP_CNT */ rb_ary_push(ary, Qnil); /* ISEQ_MARK_ARY_ORIGINAL_ISEQ */ -- cgit v1.2.3