From e5a44d61a2bc491f1c8c9fb1a426daa6cadff434 Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 6 Aug 2016 18:38:23 +0100 Subject: [PATCH] api updates --- main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.cc b/main.cc index 5ba39db..b707ef4 100644 --- a/main.cc +++ b/main.cc @@ -29,7 +29,7 @@ using ostd::Condition; using cscript::CsState; using cscript::TvalRange; using cscript::StackedValue; -using cscript::Bytecode; +using cscript::BytecodeRef; /* glob matching code */ @@ -280,7 +280,7 @@ struct ObState: CsState { struct Rule { String target; Vector deps; - Bytecode func; + BytecodeRef func; bool action; Rule(): target(), deps(), func(), action(false) {} @@ -386,7 +386,7 @@ struct ObState: CsState { int ret = wait_result([&rlist, &subdeps, &tname, this]() { return exec_list(rlist, subdeps, tname); }); - Bytecode *func = nullptr; + BytecodeRef *func = nullptr; bool act = false; for (auto &sr: rlist.iter()) { if (sr.rule->func) {