diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:21:03 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:21:03 +0000 |
commit | c435c7daa9df1b08dc85132fcd1c154bea9b69e2 (patch) | |
tree | 5537f3c91a67b35c4c8aa918b708b7e4aad8f146 /src/functiongetmakedeps.cpp | |
parent | 59690513123de8904eef2a03fe7fcaaed98b1b7b (diff) | |
download | build-c435c7daa9df1b08dc85132fcd1c154bea9b69e2.tar.gz build-c435c7daa9df1b08dc85132fcd1c154bea9b69e2.tar.bz2 build-c435c7daa9df1b08dc85132fcd1c154bea9b69e2.tar.xz build-c435c7daa9df1b08dc85132fcd1c154bea9b69e2.zip |
Fixes to use libbu++ Bu::String
Diffstat (limited to '')
-rw-r--r-- | src/functiongetmakedeps.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/functiongetmakedeps.cpp b/src/functiongetmakedeps.cpp index cfe5459..fda6aa2 100644 --- a/src/functiongetmakedeps.cpp +++ b/src/functiongetmakedeps.cpp | |||
@@ -18,7 +18,7 @@ FunctionGetMakeDeps::~FunctionGetMakeDeps() | |||
18 | { | 18 | { |
19 | } | 19 | } |
20 | 20 | ||
21 | Bu::FString FunctionGetMakeDeps::getName() const | 21 | Bu::String FunctionGetMakeDeps::getName() const |
22 | { | 22 | { |
23 | return "getMakeDeps"; | 23 | return "getMakeDeps"; |
24 | } | 24 | } |
@@ -30,7 +30,7 @@ Variable FunctionGetMakeDeps::call( Variable &/*input*/, VarList lParams ) | |||
30 | lParams.first().getString().getStr(), NULL ); | 30 | lParams.first().getString().getStr(), NULL ); |
31 | 31 | ||
32 | // Gather all data from the command. | 32 | // Gather all data from the command. |
33 | Bu::FString sBuf; | 33 | Bu::String sBuf; |
34 | do | 34 | do |
35 | { | 35 | { |
36 | char buf[4096]; | 36 | char buf[4096]; |
@@ -43,7 +43,7 @@ Variable FunctionGetMakeDeps::call( Variable &/*input*/, VarList lParams ) | |||
43 | 43 | ||
44 | Variable vRet( Variable::typeList ); | 44 | Variable vRet( Variable::typeList ); |
45 | 45 | ||
46 | Bu::FString::iterator i, j; | 46 | Bu::String::iterator i, j; |
47 | i = sBuf.find(':')+2; | 47 | i = sBuf.find(':')+2; |
48 | while( i ) | 48 | while( i ) |
49 | { | 49 | { |
@@ -51,7 +51,7 @@ Variable FunctionGetMakeDeps::call( Variable &/*input*/, VarList lParams ) | |||
51 | // always a space after a word | 51 | // always a space after a word |
52 | for( j = i; j && *j != ' ' && *j != '\n' && *j != '\r'; j++ ) { } | 52 | for( j = i; j && *j != ' ' && *j != '\n' && *j != '\r'; j++ ) { } |
53 | 53 | ||
54 | Bu::FString sTmp( i, j ); | 54 | Bu::String sTmp( i, j ); |
55 | vRet.append( sTmp ); | 55 | vRet.append( sTmp ); |
56 | 56 | ||
57 | // Find the begining of the next word, trickier, we don't want to go | 57 | // Find the begining of the next word, trickier, we don't want to go |