From ad08f62619577ce3c133cfeb016f64a4ea08a8de Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 12 Aug 2016 04:03:03 +0100 Subject: [PATCH] api updates --- main.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.cc b/main.cc index 61a6234..2ea3bec 100644 --- a/main.cc +++ b/main.cc @@ -397,20 +397,19 @@ struct ObState: CsState { } } if ((!ret && (act || ob_check_exec(tname, subdeps))) && func) { - StackedValue targetv, sourcev, sourcesv; - CsState &cs = *this; + StackedValue targetv(*this), sourcev(*this), sourcesv(*this); - if (!targetv.alias(cs, "target")) { + if (!targetv.set_id("target")) { return 1; } targetv.set_cstr(tname); targetv.push(); if (!subdeps.empty()) { - if (!sourcev.alias(cs, "source")) { + if (!sourcev.set_id("source")) { return 1; } - if (!sourcesv.alias(cs, "sources")) { + if (!sourcesv.set_id("sources")) { return 1; }