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.
parent d93b1a48
...@@ -125,4 +125,4 @@ jobs: ...@@ -125,4 +125,4 @@ jobs:
MRUBY_TARGET: appveyor MRUBY_TARGET: appveyor
# TODO(take-cheeze): Re-enable /O2 # TODO(take-cheeze): Re-enable /O2
CFLAGS: "/c /nologo /W3 /we4013 /Zi /MD /D_CRT_SECURE_NO_WARNINGS" CFLAGS: "/c /nologo /W3 /we4013 /Zi /MD /D_CRT_SECURE_NO_WARNINGS"
CXXFLAGS: "/c /nologo /W3 /Zi /MD /EHs /D_CRT_SECURE_NO_WARNINGS /std:c++latest" CXXFLAGS: "/c /nologo /W3 /Zi /MD /EHs /D_CRT_SECURE_NO_WARNINGS"
...@@ -1311,20 +1311,20 @@ static const mrb_sym each_syms[] = { ...@@ -1311,20 +1311,20 @@ static const mrb_sym each_syms[] = {
}; };
static const mrb_irep each_irep = { static const mrb_irep each_irep = {
.nlocals = 3, 3, /* nlocals */
.nregs = 7, 7, /* nregs */
.flags = MRB_ISEQ_NO_FREE | MRB_IREP_NO_FREE, MRB_ISEQ_NO_FREE | MRB_IREP_NO_FREE, /* flags */
.iseq = each_iseq, each_iseq, /* iseq */
.pool = NULL, NULL, /* pool */
.syms = each_syms, each_syms, /* syms */
.reps = NULL, NULL, /* reps */
.lv = NULL, NULL, /* lv */
.debug_info = NULL, NULL, /* debug_info */
.ilen = sizeof(each_iseq), sizeof(each_iseq), /* ilen */
.plen = 0, 0, /* plen */
.slen = sizeof(each_syms), sizeof(each_syms), /* slen */
.rlen = 1, 1, /* rlen */
.refcnt = 0, 0, /* refcnt */
}; };
static void static void
......
...@@ -15,20 +15,20 @@ static const mrb_code call_iseq[] = { ...@@ -15,20 +15,20 @@ static const mrb_code call_iseq[] = {
}; };
static const mrb_irep call_irep = { static const mrb_irep call_irep = {
.nlocals = 0, 0, /* nlocals */
.nregs = 2, 2, /* nregs */
.flags = MRB_ISEQ_NO_FREE | MRB_IREP_NO_FREE, MRB_ISEQ_NO_FREE | MRB_IREP_NO_FREE, /* flags */
.iseq = call_iseq, call_iseq, /* iseq */
.pool = NULL, NULL, /* pool */
.syms = NULL, NULL, /* syms */
.reps = NULL, NULL, /* reps */
.lv = NULL, NULL, /* lv */
.debug_info = NULL, NULL, /* debug_info */
.ilen = 1, 1, /* ilen */
.plen = 0, 0, /* plen */
.slen = 0, 0, /* slen */
.rlen = 1, 1, /* rlen */
.refcnt = 0, 0, /* refcnt */
}; };
struct RProc* struct RProc*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment