aboutsummaryrefslogtreecommitdiff
path: root/src/stringproc.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-09-20 18:56:49 +0000
committerMike Buland <eichlan@xagasoft.com>2006-09-20 18:56:49 +0000
commit85539c8c262c0c9e227c87fd1de02c53c163b7d8 (patch)
treeb6f96899ca745c157a6de93ad27013416976fc06 /src/stringproc.h
parent5a32418a040e967887aa6e01e41abc22932471db (diff)
downloadbuild-85539c8c262c0c9e227c87fd1de02c53c163b7d8.tar.gz
build-85539c8c262c0c9e227c87fd1de02c53c163b7d8.tar.bz2
build-85539c8c262c0c9e227c87fd1de02c53c163b7d8.tar.xz
build-85539c8c262c0c9e227c87fd1de02c53c163b7d8.zip
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.
Diffstat (limited to '')
-rw-r--r--src/stringproc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stringproc.h b/src/stringproc.h
index 860579f..d408601 100644
--- a/src/stringproc.h
+++ b/src/stringproc.h
@@ -4,10 +4,12 @@
4#include <stdint.h> 4#include <stdint.h>
5#include <string> 5#include <string>
6#include <map> 6#include <map>
7#include <list>
7 8
8class Build; 9class Build;
9 10
10typedef std::map<std::string,std::string> VarMap; 11typedef std::map<std::string,std::string> VarMap;
12typedef std::list<std::string> StringList;
11 13
12class StringProc 14class StringProc
13{ 15{
@@ -15,7 +17,7 @@ public:
15 StringProc( Build *pBld ); 17 StringProc( Build *pBld );
16 virtual ~StringProc(); 18 virtual ~StringProc();
17 19
18 virtual std::string replVars( const std::string &sSrc, const std::string &sCont, VarMap *mExtra )=0; 20 virtual std::string replVars( const std::string &sSrc, const StringList *pCont, VarMap *mExtra )=0;
19 21
20protected: 22protected:
21 Build *getBuild() 23 Build *getBuild()