From fbfaecc4cc190e87c5c353405c80bc75c4353e61 Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 29 Aug 2016 18:18:18 +0100 Subject: [PATCH] api updates --- main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.cc b/main.cc index 9838565..866316f 100644 --- a/main.cc +++ b/main.cc @@ -513,7 +513,7 @@ struct ObState: CsState { Rule &r = rules.push(); r.target = target; r.action = action; - r.func = cscript::code_is_empty(body) ? nullptr : body; + r.func = cscript::cs_code_is_empty(body) ? nullptr : body; r.deps = cscript::util::list_explode(dep); } } @@ -588,7 +588,7 @@ int main(int argc, char **argv) { int jobs = 1; int ncpus = ostd::Thread::hardware_concurrency(); - os.add_ident("numcpus", 4096, 1, ncpus); + os.add_ident("numcpus", 4096, 1, ncpus); ConstCharRange fcont; ConstCharRange deffile = "obuild.cfg"; @@ -633,7 +633,7 @@ int main(int argc, char **argv) { } } - os.add_ident("numjobs", 4096, 1, jobs); + os.add_ident("numjobs", 4096, 1, jobs); ThreadPool tpool; tpool.init(jobs);