aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-23 07:59:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-23 07:59:17 +0000
commit3c0bb8d6f4ece61843f4a26b115e6555d2bbc913 (patch)
tree0b575420b7c24e1da12f8bfd6ad84510c0722f75 /iseq.h
parent8aa8847b7c69bd9de812f4fefa39c9c4c4cb7b21 (diff)
downloadruby-3c0bb8d6f4ece61843f4a26b115e6555d2bbc913.tar.gz
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
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h9
1 files changed, 5 insertions, 4 deletions
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 */