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/perform.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/perform.h') diff --git a/src/perform.h b/src/perform.h index ea8d5e3..031e007 100644 --- a/src/perform.h +++ b/src/perform.h @@ -7,6 +7,7 @@ #include typedef std::map VarMap; +typedef std::list StringList; class Build; @@ -17,9 +18,9 @@ public: virtual ~Perform(); void addParam( const char *sParam ); - virtual Perform *duplicate( Build &bld, const std::string &cont, VarMap *mExtra ) = 0; + virtual Perform *duplicate( Build &bld, const StringList *cont, VarMap *mExtra ) = 0; virtual void execute( Build &bld ) = 0; - void copyData( Perform *pSrc, Build &bld, const std::string &cont, VarMap *mExtra ); + void copyData( Perform *pSrc, Build &bld, const StringList *cont, VarMap *mExtra ); std::string getTarget() { return sTarget; -- cgit v1.2.3