From 550cab584b10ede3aa403d47d6eccbeb5a704536 Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 23 Nov 2015 21:26:07 +0000 Subject: [PATCH] rule_add cleanup --- main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cc b/main.cc index 051d676..d7166da 100644 --- a/main.cc +++ b/main.cc @@ -312,7 +312,7 @@ struct ObState { return wait_result([&target, this]() { return exec_rule(target); }); } - void rule_add(const char *tgt, const char *dep, ostd::Uint32 *body, + void rule_add(ConstCharRange tgt, ConstCharRange dep, ostd::Uint32 *body, bool action = false) { auto targets = cscript::util::list_explode(tgt); for (auto &target: targets.iter()) {