diff options
author | Brad King <brad.king@kitware.com> | 2004-08-31 22:39:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2004-08-31 22:39:42 (GMT) |
commit | 486a26d3db24cf2569310b4b2dad32667cbbcaa1 (patch) | |
tree | 323e4da91a75b65df7edb6efa495fead998e0f82 /Source/cmListFileLexer.h | |
parent | 491bebefa2f6da9221c5d40ce1c4d3ff2da1c401 (diff) | |
download | CMake-486a26d3db24cf2569310b4b2dad32667cbbcaa1.zip CMake-486a26d3db24cf2569310b4b2dad32667cbbcaa1.tar.gz CMake-486a26d3db24cf2569310b4b2dad32667cbbcaa1.tar.bz2 |
BUG#1049: Added error message when file ends in an unterminated string.
Diffstat (limited to 'Source/cmListFileLexer.h')
-rw-r--r-- | Source/cmListFileLexer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmListFileLexer.h b/Source/cmListFileLexer.h index f40866a..8e32244 100644 --- a/Source/cmListFileLexer.h +++ b/Source/cmListFileLexer.h @@ -26,7 +26,8 @@ typedef enum cmListFileLexer_Type_e cmListFileLexer_Token_ParenRight, cmListFileLexer_Token_ArgumentUnquoted, cmListFileLexer_Token_ArgumentQuoted, - cmListFileLexer_Token_Error + cmListFileLexer_Token_BadCharacter, + cmListFileLexer_Token_BadString } cmListFileLexer_Type; typedef struct cmListFileLexer_Token_s cmListFileLexer_Token; @@ -52,6 +53,8 @@ int cmListFileLexer_SetString(cmListFileLexer*, const char*); cmListFileLexer_Token* cmListFileLexer_Scan(cmListFileLexer*); long cmListFileLexer_GetCurrentLine(cmListFileLexer*); long cmListFileLexer_GetCurrentColumn(cmListFileLexer*); +const char* cmListFileLexer_GetTypeAsString(cmListFileLexer*, + cmListFileLexer_Type); void cmListFileLexer_Delete(cmListFileLexer*); #ifdef __cplusplus |