diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2006-09-20 18:56:49 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2006-09-20 18:56:49 +0000 |
| commit | 85539c8c262c0c9e227c87fd1de02c53c163b7d8 (patch) | |
| tree | b6f96899ca745c157a6de93ad27013416976fc06 /src/stringproc.h | |
| parent | 5a32418a040e967887aa6e01e41abc22932471db (diff) | |
| download | build-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.h | 4 |
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 | ||
| 8 | class Build; | 9 | class Build; |
| 9 | 10 | ||
| 10 | typedef std::map<std::string,std::string> VarMap; | 11 | typedef std::map<std::string,std::string> VarMap; |
| 12 | typedef std::list<std::string> StringList; | ||
| 11 | 13 | ||
| 12 | class StringProc | 14 | class 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 | ||
| 20 | protected: | 22 | protected: |
| 21 | Build *getBuild() | 23 | Build *getBuild() |
