diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-09-12 00:22:33 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-09-12 00:22:33 +0000 |
commit | d19ada0aa88aba1c7b439035c0028440ac860ec3 (patch) | |
tree | fb8cde98650aa66fcdb736b045f541eac1b8b93a /src/functiontostring.cpp | |
parent | 97d529fac68105f0d3d34c699a4ac10489c705e8 (diff) | |
download | build-d19ada0aa88aba1c7b439035c0028440ac860ec3.tar.gz build-d19ada0aa88aba1c7b439035c0028440ac860ec3.tar.bz2 build-d19ada0aa88aba1c7b439035c0028440ac860ec3.tar.xz build-d19ada0aa88aba1c7b439035c0028440ac860ec3.zip |
Build now builds, it has viewers, and dependancy checking, and everything works.
Now we have to add cleaning, caching, and more viewer hooks / viewers.
Diffstat (limited to 'src/functiontostring.cpp')
-rw-r--r-- | src/functiontostring.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/functiontostring.cpp b/src/functiontostring.cpp index a76705a..0a7bb48 100644 --- a/src/functiontostring.cpp +++ b/src/functiontostring.cpp | |||
@@ -11,7 +11,23 @@ FunctionToString::~FunctionToString() | |||
11 | { | 11 | { |
12 | } | 12 | } |
13 | 13 | ||
14 | void FunctionToString::execute( const StringList &lInput, StringList &lOutput ) | 14 | void FunctionToString::execute( Build *bld, const StringList &lInput, StringList &lOutput ) |
15 | { | 15 | { |
16 | std::string sOut; | ||
17 | |||
18 | for( StringList::const_iterator i = lInput.begin(); i != lInput.end(); i++ ) | ||
19 | { | ||
20 | if( i != lInput.begin() ) sOut += " "; | ||
21 | sOut += *i; | ||
22 | } | ||
23 | |||
24 | lOutput.push_back( sOut ); | ||
25 | } | ||
26 | |||
27 | Function *FunctionToString::duplicate( Build &bld, const std::string &cont, VarMap *mExtra ) | ||
28 | { | ||
29 | Function *pRet = new FunctionToString(); | ||
30 | pRet->copyData( this, bld, cont, mExtra ); | ||
31 | return pRet; | ||
16 | } | 32 | } |
17 | 33 | ||