diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-23 07:59:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-23 07:59:17 +0000 |
commit | 3c0bb8d6f4ece61843f4a26b115e6555d2bbc913 (patch) | |
tree | 0b575420b7c24e1da12f8bfd6ad84510c0722f75 /iseq.h | |
parent | 8aa8847b7c69bd9de812f4fefa39c9c4c4cb7b21 (diff) |
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.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 */ |