diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-13 14:00:59 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-13 14:00:59 (GMT) |
commit | d36f3c5543eed9e120b855e3c1b0d55d800f374e (patch) | |
tree | aa58c6d4d652e626adf18527af85497e64ba78bb /Source/cmCommandArgumentParserHelper.h | |
parent | 84f12f9298475c810e25d909d70f3cabdf691e39 (diff) | |
download | CMake-d36f3c5543eed9e120b855e3c1b0d55d800f374e.zip CMake-d36f3c5543eed9e120b855e3c1b0d55d800f374e.tar.gz CMake-d36f3c5543eed9e120b855e3c1b0d55d800f374e.tar.bz2 |
ENH: Handle errors and optimize a bit
Diffstat (limited to 'Source/cmCommandArgumentParserHelper.h')
-rw-r--r-- | Source/cmCommandArgumentParserHelper.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/cmCommandArgumentParserHelper.h b/Source/cmCommandArgumentParserHelper.h index e1d4216..0d0ff6c 100644 --- a/Source/cmCommandArgumentParserHelper.h +++ b/Source/cmCommandArgumentParserHelper.h @@ -77,6 +77,16 @@ public: void SetLineFile(long line, const char* file); void SetEscapeQuotes(bool b) { m_EscapeQuotes = b; } + const char* GetError() { return m_Error.c_str(); } + + char m_EmptyVariable[1]; + char m_DCURLYVariable[3]; + char m_RCURLYVariable[3]; + char m_ATVariable[3]; + char m_DOLLARVariable[3]; + char m_LCURLYVariable[3]; + char m_BSLASHVariable[3]; + private: cmStdString::size_type InputBufferPos; cmStdString InputBuffer; @@ -98,13 +108,15 @@ private: void CleanupParser(); std::set<char*> m_Variables; - char m_EmptyVariable[1]; const cmMakefile* m_Makefile; std::string m_Result; const char* m_FileName; long m_FileLine; bool m_EscapeQuotes; + + std::string m_Error; + }; #endif |