From 20a7234dac29d80c65858b01c8ad65a253d1d766 Mon Sep 17 00:00:00 2001 From: q66 Date: Wed, 25 Apr 2018 01:52:53 +0200 Subject: [PATCH] libcs update --- main.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.cc b/main.cc index b964c74..5f5458e 100644 --- a/main.cc +++ b/main.cc @@ -32,10 +32,10 @@ static void rule_add( string_range target, string_range depends, cs_bcode *body, bool action = false ) { - cscript::util::ListParser p{cs, target}; + cscript::util::list_parser p{cs, target}; while (p.parse()) { auto &rl = mk.rule(p.get_item()).action(action); - cscript::util::ListParser lp{cs, depends}; + cscript::util::list_parser lp{cs, depends}; while (lp.parse()) { rl.depend(lp.get_item()); } @@ -134,7 +134,7 @@ static void init_pathlib(cs_state &cs) { string_range oldext = args[1].get_strr(); string_range newext = args[2].get_strr(); std::string ret; - for (cscript::util::ListParser p{cs, args[0].get_strr()}; p.parse();) { + for (cscript::util::list_parser p{cs, args[0].get_strr()}; p.parse();) { ostd::path np{p.get_item()}; if (!ret.empty()) { ret += ' '; @@ -149,7 +149,7 @@ static void init_pathlib(cs_state &cs) { cs.new_command("glob", "C", [](auto &cs, auto args, auto &res) { auto ret = ostd::appender(); auto app = ostd::appender>();; - for (cscript::util::ListParser p{cs, args[0].get_strr()}; p.parse();) { + for (cscript::util::list_parser p{cs, args[0].get_strr()}; p.parse();) { fs::glob_match(app, p.get_item()); } ostd::format(ret, "%(%s %)", app.get());