From 2e98d0aecdfa30ce61c7e6686adaf48b6f5bfac1 Mon Sep 17 00:00:00 2001 From: q66 Date: Wed, 16 Dec 2015 19:05:09 +0000 Subject: [PATCH] use new libcubescript api --- main.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/main.cc b/main.cc index aac84ec..04202ff 100644 --- a/main.cc +++ b/main.cc @@ -347,19 +347,15 @@ struct ObState: CsState { if ((!ret && (act || ob_check_exec(tname, subdeps))) && func) { StackedValue targetv, sourcev, sourcesv; - targetv.id = new_ident("target"); - if (!cscript::check_alias(targetv.id)) + if (!targetv.alias(*this, "target")) return 1; targetv.set_cstr(tname); targetv.push(); if (subdeps.size() > 0) { - sourcev.id = new_ident("source"); - if (!cscript::check_alias(sourcev.id)) + if (!sourcev.alias(*this, "source")) return 1; - - sourcesv.id = new_ident("sources"); - if (!cscript::check_alias(sourcesv.id)) + if (!sourcesv.alias(*this, "sources")) return 1; sourcev.set_cstr(subdeps[0]);