From f01ad2c4e088fea9f3b6d918d910d7fd17519ade Mon Sep 17 00:00:00 2001 From: marha Date: Mon, 23 Nov 2009 14:19:51 +0000 Subject: Implemented which function. --- tools/mhmake/src/functions.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools/mhmake/src/functions.cpp') 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 mhmakefileparser::m_Functions; @@ -616,6 +617,13 @@ string mhmakefileparser::f_words(const string & Arg) const return szNumber; } +/////////////////////////////////////////////////////////////////////////////// +// 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 -- cgit v1.2.3