From 71eb4b2b227c083f187c634212f5fc557f392fb9 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sun, 7 Jun 2020 17:20:37 +0900 Subject: 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. --- src/proc.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/proc.c') 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* -- cgit v1.2.3