summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-13 11:45:25 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-13 11:45:25 +0000
commit7da7716159f296e0175aad3a23452ef9710e80e5 (patch)
treed8b10dc02bc0d11b4beb438e0626821bda168086 /iseq.c
parentafcd060a926ab8ab8405bf51ca4c23d8abce4c21 (diff)
internal.h (FLEX_ARY_LEN): Add a macro to define a flexible array
Also, use it in iseq.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/iseq.c b/iseq.c
index 5cdac49de5..ee49026c9a 100644
--- a/iseq.c
+++ b/iseq.c
@@ -2836,15 +2836,7 @@ struct succ_index_table {
unsigned int rank;
uint64_t small_block_ranks; /* 9 bits * 7 = 63 bits */
uint64_t bits[512/64];
- } succ_part[
-#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
- /* flexible array member */
-#elif defined(__GNUC__) && !defined(__STRICT_ANSI__)
- 0
-#else
- 1
-#endif
- ];
+ } succ_part[FLEX_ARY_LEN];
} succ_index_table;
#define imm_block_rank_set(v, i, r) (v) |= (uint64_t)(r) << (7 * (i))