use Bytecode object

master
Daniel Kolesa 2015-12-20 00:21:39 +01:00
parent 1812c06bf6
commit 6c40623371
1 changed files with 3 additions and 3 deletions

View File

@ -331,12 +331,12 @@ struct ObState: CsState {
int ret = wait_result([&rlist, &subdeps, &tname, this]() { int ret = wait_result([&rlist, &subdeps, &tname, this]() {
return exec_list(rlist, subdeps, tname); return exec_list(rlist, subdeps, tname);
}); });
Uint32 *func = nullptr; cscript::Bytecode *func = nullptr;
bool act = false; bool act = false;
for (auto &sr: rlist.iter()) { for (auto &sr: rlist.iter()) {
Rule &r = *sr.rule; Rule &r = *sr.rule;
if (r.func) { if (r.func) {
func = r.func; func = &r.func;
act = r.action; act = r.action;
break; break;
} }
@ -364,7 +364,7 @@ struct ObState: CsState {
sourcesv.push(); sourcesv.push();
} }
return run_int(func); return run_int(*func);
} }
return ret; return ret;
} }