diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-09 18:44:37 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-09 18:44:37 (GMT) |
commit | 0e95a190bc124f38d5e680a0f7b1f41dd4c1fa15 (patch) | |
tree | d76e21d616b239fa53b5b32f18b32851a6d6c055 /Source/cmCommandArgumentParserHelper.h | |
parent | 0e1ae13f7c91774b6fca3835b422634a6f0f36b9 (diff) | |
download | CMake-0e95a190bc124f38d5e680a0f7b1f41dd4c1fa15.zip CMake-0e95a190bc124f38d5e680a0f7b1f41dd4c1fa15.tar.gz CMake-0e95a190bc124f38d5e680a0f7b1f41dd4c1fa15.tar.bz2 |
ENH: add atonly support to cmCommandArgumentParserHelper.cxx and remove old non-yacc parser code from cmMakefile.cxx
Diffstat (limited to 'Source/cmCommandArgumentParserHelper.h')
-rw-r--r-- | Source/cmCommandArgumentParserHelper.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmCommandArgumentParserHelper.h b/Source/cmCommandArgumentParserHelper.h index 7f5078f..d49952a 100644 --- a/Source/cmCommandArgumentParserHelper.h +++ b/Source/cmCommandArgumentParserHelper.h @@ -58,7 +58,7 @@ public: char* CombineUnions(char* in1, char* in2); char* ExpandSpecialVariable(const char* key, const char* var); - char* ExpandVariable(const char* var); + char* ExpandVariable(const char* var, bool doingAt=false); char* ExpandVariableForAt(const char* var); void SetResult(const char* value); @@ -70,7 +70,9 @@ public: void SetEscapeQuotes(bool b) { this->EscapeQuotes = b; } void SetNoEscapeMode(bool b) { this->NoEscapeMode = b; } void SetReplaceAtSyntax(bool b) { this->ReplaceAtSyntax = b; } - + void SetRemoveEmpty(bool b) { this->RemoveEmpty = b; } + void SetAtOnly(bool b) { this->AtOnly = b; } + const char* GetError() { return this->ErrorString.c_str(); } char EmptyVariable[1]; char DCURLYVariable[3]; @@ -104,6 +106,8 @@ private: std::string ErrorString; bool NoEscapeMode; bool ReplaceAtSyntax; + bool RemoveEmpty; + bool AtOnly; }; #endif |