summaryrefslogtreecommitdiffstats
path: root/Source/cmFortranLexer.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-11-02 20:29:52 (GMT)
committerBrad King <brad.king@kitware.com>2015-11-02 20:29:52 (GMT)
commitba819f49df33b546072a5928de3253770c4716b9 (patch)
treeb281ef543d802a53a9c7a438947003a997401b8d /Source/cmFortranLexer.h
parent7748a02c3f7d028af13d4fc2c83e7181d11397e9 (diff)
downloadCMake-ba819f49df33b546072a5928de3253770c4716b9.zip
CMake-ba819f49df33b546072a5928de3253770c4716b9.tar.gz
CMake-ba819f49df33b546072a5928de3253770c4716b9.tar.bz2
cmFortranParser: Parse #line directives
Teach the lexer to extract the #line directive prefix and line number as a new token type. Teach the parser to recognize this token followed by a string as the file name (plus possibly other content). Report the named file as included by the source file.
Diffstat (limited to 'Source/cmFortranLexer.h')
-rw-r--r--Source/cmFortranLexer.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/Source/cmFortranLexer.h b/Source/cmFortranLexer.h
index c67e332..b9ff0dc 100644
--- a/Source/cmFortranLexer.h
+++ b/Source/cmFortranLexer.h
@@ -1,6 +1,6 @@
/*============================================================================
CMake - Cross Platform Makefile Generator
- Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
+ Copyright 2000-2015 Kitware, Inc., Insight Software Consortium
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
@@ -20,7 +20,7 @@
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
-#define YY_FLEX_SUBMINOR_VERSION 35
+#define YY_FLEX_SUBMINOR_VERSION 39
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
@@ -177,7 +177,7 @@ struct yy_buffer_state
/* Number of characters read into yy_ch_buf, not including EOB
* characters.
*/
- int yy_n_chars;
+ yy_size_t yy_n_chars;
/* Whether we "own" the buffer - i.e., we know we created it,
* and can realloc() it to grow it, and should free() it to
@@ -221,7 +221,7 @@ void cmFortran_yypop_buffer_state (yyscan_t yyscanner );
YY_BUFFER_STATE cmFortran_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
YY_BUFFER_STATE cmFortran_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
-YY_BUFFER_STATE cmFortran_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
+YY_BUFFER_STATE cmFortran_yy_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
void *cmFortran_yyalloc (yy_size_t ,yyscan_t yyscanner );
void *cmFortran_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
@@ -229,7 +229,7 @@ void cmFortran_yyfree (void * ,yyscan_t yyscanner );
/* Begin user sect3 */
-#define cmFortran_yywrap(n) 1
+#define cmFortran_yywrap(yyscanner) 1
#define YY_SKIP_YYWRAP
#define yytext_ptr yytext_r
@@ -272,7 +272,7 @@ FILE *cmFortran_yyget_out (yyscan_t yyscanner );
void cmFortran_yyset_out (FILE * out_str ,yyscan_t yyscanner );
-int cmFortran_yyget_leng (yyscan_t yyscanner );
+yy_size_t cmFortran_yyget_leng (yyscan_t yyscanner );
char *cmFortran_yyget_text (yyscan_t yyscanner );
@@ -280,6 +280,10 @@ int cmFortran_yyget_lineno (yyscan_t yyscanner );
void cmFortran_yyset_lineno (int line_number ,yyscan_t yyscanner );
+int cmFortran_yyget_column (yyscan_t yyscanner );
+
+void cmFortran_yyset_column (int column_no ,yyscan_t yyscanner );
+
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/