summaryrefslogtreecommitdiffhomepage
path: root/src/proc.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/proc.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/proc.c')
-rw-r--r--src/proc.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/proc.c b/src/proc.c
index f01c45041..2da2ec77e 100644
--- a/src/proc.c
+++ b/src/proc.c
@@ -15,20 +15,20 @@ static const mrb_code call_iseq[] = {
};
static const mrb_irep call_irep = {
- .nlocals = 0,
- .nregs = 2,
- .flags = MRB_ISEQ_NO_FREE | MRB_IREP_NO_FREE,
- .iseq = call_iseq,
- .pool = NULL,
- .syms = NULL,
- .reps = NULL,
- .lv = NULL,
- .debug_info = NULL,
- .ilen = 1,
- .plen = 0,
- .slen = 0,
- .rlen = 1,
- .refcnt = 0,
+ 0, /* nlocals */
+ 2, /* nregs */
+ MRB_ISEQ_NO_FREE | MRB_IREP_NO_FREE, /* flags */
+ call_iseq, /* iseq */
+ NULL, /* pool */
+ NULL, /* syms */
+ NULL, /* reps */
+ NULL, /* lv */
+ NULL, /* debug_info */
+ 1, /* ilen */
+ 0, /* plen */
+ 0, /* slen */
+ 1, /* rlen */
+ 0, /* refcnt */
};
struct RProc*