From 85539c8c262c0c9e227c87fd1de02c53c163b7d8 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 20 Sep 2006 18:56:49 +0000 Subject: Changed the api for variable replacement contexts. There can now be multiple levels of contextual inheritance, so now sub-targets automatically get their parent target's context variables, if they need them. --- src/build.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/build.h') diff --git a/src/build.h b/src/build.h index e0f60ec..82e4998 100644 --- a/src/build.h +++ b/src/build.h @@ -46,14 +46,14 @@ public: void set( const std::string &cont, const std::string &var, const std::string &val ); void setAdd( const std::string &cont, const std::string &var, const std::string &val ); - std::string getVar( const std::string &cont, const std::string &var, VarMap *mExtra ); + std::string getVar( const StringList *cont, const std::string &var, VarMap *mExtra ); Rule *getRule( const std::string &name ); void debugDump(); void setStringProc( StringProc *pStrProc ); - std::string replVars( const std::string &sSrc, const std::string &sCont, VarMap *mExtra ); + std::string replVars( const std::string &sSrc, const StringList *pCont, VarMap *mExtra ); RuleList findChainRules( Rule *pHead ); StringList &getRequires( std::string sName ); -- cgit v1.2.3