diff options
author | marha <marha@users.sourceforge.net> | 2009-11-23 14:19:51 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-11-23 14:19:51 +0000 |
commit | f01ad2c4e088fea9f3b6d918d910d7fd17519ade (patch) | |
tree | 39dab8036b13e87422975f683b4c0c47517c77ee /tools/mhmake/src/functions.cpp | |
parent | 98899a80f02b9616a1038c4c51993435c1074046 (diff) | |
download | vcxsrv-f01ad2c4e088fea9f3b6d918d910d7fd17519ade.tar.gz vcxsrv-f01ad2c4e088fea9f3b6d918d910d7fd17519ade.tar.bz2 vcxsrv-f01ad2c4e088fea9f3b6d918d910d7fd17519ade.zip |
Implemented which function.
Diffstat (limited to 'tools/mhmake/src/functions.cpp')
-rw-r--r-- | tools/mhmake/src/functions.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/mhmake/src/functions.cpp b/tools/mhmake/src/functions.cpp index 6ba64c3c1..3765bc37c 100644 --- a/tools/mhmake/src/functions.cpp +++ b/tools/mhmake/src/functions.cpp @@ -52,6 +52,7 @@ funcdef mhmakefileparser::m_FunctionsDef[]= { ,{"word" ,&mhmakefileparser::f_word}
,{"words" ,&mhmakefileparser::f_words}
,{"strip" ,&mhmakefileparser::f_strip}
+ ,{"which" ,&mhmakefileparser::f_which}
};
map<string,function_f> mhmakefileparser::m_Functions;
@@ -617,6 +618,13 @@ string mhmakefileparser::f_words(const string & Arg) const }
///////////////////////////////////////////////////////////////////////////////
+// Search for a command in the enivornment path
+string mhmakefileparser::f_which(const string & Arg) const
+{
+ return SearchCommand(Arg);
+}
+
+///////////////////////////////////////////////////////////////////////////////
// Removes leading and trailing space
string mhmakefileparser::f_strip(const string & Arg) const
{
|