summaryrefslogtreecommitdiffhomepage
path: root/src/array.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-06-07 17:20:37 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 16:21:07 +0900
commit71eb4b2b227c083f187c634212f5fc557f392fb9 (patch)
tree1e8e08dbebbf8d0f9a004dedb7405c254b15646d /src/array.c
parentd93b1a48d2b50117374008c575a2a811943e8049 (diff)
downloadmruby-71eb4b2b227c083f187c634212f5fc557f392fb9.tar.gz
mruby-71eb4b2b227c083f187c634212f5fc557f392fb9.zip
Avoid use of designated initializers to generate `irep` struct.
Since it's not supported on VC without `/std:c++latest`. That means it doesn't work for `cxx_api` build on Windows VC.
Diffstat (limited to 'src/array.c')
-rw-r--r--src/array.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/array.c b/src/array.c
index 773165a8c..a2a8b3eec 100644
--- a/src/array.c
+++ b/src/array.c
@@ -1311,20 +1311,20 @@ static const mrb_sym each_syms[] = {
};
static const mrb_irep each_irep = {
- .nlocals = 3,
- .nregs = 7,
- .flags = MRB_ISEQ_NO_FREE | MRB_IREP_NO_FREE,
- .iseq = each_iseq,
- .pool = NULL,
- .syms = each_syms,
- .reps = NULL,
- .lv = NULL,
- .debug_info = NULL,
- .ilen = sizeof(each_iseq),
- .plen = 0,
- .slen = sizeof(each_syms),
- .rlen = 1,
- .refcnt = 0,
+ 3, /* nlocals */
+ 7, /* nregs */
+ MRB_ISEQ_NO_FREE | MRB_IREP_NO_FREE, /* flags */
+ each_iseq, /* iseq */
+ NULL, /* pool */
+ each_syms, /* syms */
+ NULL, /* reps */
+ NULL, /* lv */
+ NULL, /* debug_info */
+ sizeof(each_iseq), /* ilen */
+ 0, /* plen */
+ sizeof(each_syms), /* slen */
+ 1, /* rlen */
+ 0, /* refcnt */
};
static void