aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/src/mhmakefileparser.h
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-10-30 18:34:27 +0000
committermarha <marha@users.sourceforge.net>2010-10-30 18:34:27 +0000
commit75ef19188d021a5e965198bde774c1c33bedc1f3 (patch)
treef20be1d1e684a5388c0e386ea302c1b3e98359d0 /tools/mhmake/src/mhmakefileparser.h
parentd9ddf066b898491827ffd6f1d115534c54c82f6b (diff)
downloadvcxsrv-75ef19188d021a5e965198bde774c1c33bedc1f3.tar.gz
vcxsrv-75ef19188d021a5e965198bde774c1c33bedc1f3.tar.bz2
vcxsrv-75ef19188d021a5e965198bde774c1c33bedc1f3.zip
Increased gnu make compatibility.
Diffstat (limited to 'tools/mhmake/src/mhmakefileparser.h')
-rw-r--r--tools/mhmake/src/mhmakefileparser.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/tools/mhmake/src/mhmakefileparser.h b/tools/mhmake/src/mhmakefileparser.h
index 8bc0adbe9..6bdaa911d 100644
--- a/tools/mhmake/src/mhmakefileparser.h
+++ b/tools/mhmake/src/mhmakefileparser.h
@@ -27,7 +27,7 @@
class rule;
-class mhmakelexer;
+class mhmakeFlexLexer;
struct TOKENVALUE
{
@@ -58,13 +58,12 @@ class mhmakefileparser : public refbase
private:
static commandqueue sm_CommandQueue;
- mhmakelexer *m_ptheLexer;
+ mhmakeFlexLexer *m_ptheLexer;
int m_yyloc;
fileinfo *m_RuleThatIsBuild;
vector<string> m_ToBeIncludeAfterBuild;
vector<string> m_MakefilesToLoad;
fileinfo* m_AutoDepFileLoaded;
- int m_InExpandExpression;
mh_time_t m_Date;
uint32 m_EnvMd5_32; /* Cached Md5_32 value of the userd environment variables */
#ifdef _DEBUG
@@ -118,7 +117,6 @@ public:
mhmakefileparser(const map<string,string> &CommandLineVars)
: m_CommandLineVars(CommandLineVars)
- ,m_InExpandExpression(0)
,m_AutoDepsDirty(false)
,m_ForceAutoDepRescan(false)
,m_SkipHeadersInitialized(false)
@@ -126,6 +124,8 @@ public:
,m_EnvMd5_32(0)
,m_pEnv(NULL)
,m_FirstTarget(NULL)
+ ,m_RuleThatIsBuild(NULL)
+ ,m_AutoDepFileLoaded(NULL)
#ifdef _DEBUG
,m_ImplicitSearch(0)
#endif
@@ -216,7 +216,7 @@ public:
bool SkipHeaderFile(const string &FileName);
void InitEnv() const;
- virtual ~mhmakefileparser()
+ virtual ~mhmakefileparser() /* virtual to be sure the correct destructor is called when we delete with a pointer to this class which in reality is a pointer to a derived class */
{
SaveAutoDepsFile();
#ifndef WIN32
@@ -240,7 +240,8 @@ public:
bool IsEqual(const string &EqualExpr) const;
bool IsExprTrue(const string &EqualExpr) const;
string ExpandExpression(const string &Expr) const;
- string ExpandMacro(const string &Expr) const;
+ string ExpandExpressionRecurse(const string &Expr, bool &Recurse) const;
+ string ExpandMacro(const string &Expr, bool &Recurse) const;
string ExpandVar(const string &Var) const;
void PrintVariables(bool Expand=false) const;