From 4c6b1f15af165bf66320674b2db08659d87770c7 Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 28 Aug 2016 18:41:01 +0100 Subject: [PATCH] api update --- main.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.cc b/main.cc index 77f38f8..9838565 100644 --- a/main.cc +++ b/main.cc @@ -29,8 +29,8 @@ using cscript::CsState; using cscript::CsValueRange; using cscript::CsValue; using cscript::StackedValue; -using cscript::BytecodeRef; -using cscript::Bytecode; +using cscript::CsBytecodeRef; +using cscript::CsBytecode; /* glob matching code */ @@ -280,7 +280,7 @@ struct ObState: CsState { struct Rule { String target; Vector deps; - BytecodeRef func; + CsBytecodeRef 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); }); - BytecodeRef *func = nullptr; + CsBytecodeRef *func = nullptr; bool act = false; for (auto &sr: rlist.iter()) { if (sr.rule->func) { @@ -505,7 +505,7 @@ struct ObState: CsState { } void rule_add( - ConstCharRange tgt, ConstCharRange dep, Bytecode *body, + ConstCharRange tgt, ConstCharRange dep, CsBytecode *body, bool action = false ) { auto targets = cscript::util::list_explode(tgt);