summaryrefslogtreecommitdiffstats
path: root/Source/cmFortranLexer.in.l
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-11-26 21:47:00 (GMT)
committerBrad King <brad.king@kitware.com>2016-12-14 14:40:33 (GMT)
commitc5df1f165c7f8f1e31e3144d326c6836af2e678d (patch)
tree58a84dbb41717eb7f49c1ae746b39ed5db37ca26 /Source/cmFortranLexer.in.l
parent1dd3e21a54f684df876da6d778ed04535ebf10ee (diff)
downloadCMake-c5df1f165c7f8f1e31e3144d326c6836af2e678d.zip
CMake-c5df1f165c7f8f1e31e3144d326c6836af2e678d.tar.gz
CMake-c5df1f165c7f8f1e31e3144d326c6836af2e678d.tar.bz2
Regenerate lexer source code
Revise the manual procedure in the `*Lexer.in.l` files. Some of our post-processing steps are no longer necessary with the current set of supported compilers. Some steps changed with newer versions of flex. Then regenerate all lexers with flex version 2.6.1.
Diffstat (limited to 'Source/cmFortranLexer.in.l')
-rw-r--r--Source/cmFortranLexer.in.l10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmFortranLexer.in.l b/Source/cmFortranLexer.in.l
index e82eaa0..1121210 100644
--- a/Source/cmFortranLexer.in.l
+++ b/Source/cmFortranLexer.in.l
@@ -13,22 +13,22 @@
/*
-This file must be translated to C and modified to build everywhere.
+This file must be translated to C++ and modified to build everywhere.
Run flex >= 2.6 like this:
- flex -i --prefix=cmFortran_yy --header-file=cmFortranLexer.h -ocmFortranLexer.cxx cmFortranLexer.in.l
+ flex -i --nounistd -DFLEXINT_H --prefix=cmFortran_yy --header-file=cmFortranLexer.h -ocmFortranLexer.cxx cmFortranLexer.in.l
Modify cmFortranLexer.cxx:
- remove trailing whitespace: sed -i 's/\s*$//' cmFortranLexer.h cmFortranLexer.cxx
- remove blank lines at end of file
- - remove "yyscanner = NULL" from end of cmFortran_yylex_destroy
- - remove all YY_BREAK lines occurring right after return statements
+ - #include "cmStandardLexer.h" at the top
- add cast in yy_scan_bytes for loop condition of _yybytes_len to size_t
*/
-#include "cmStandardLexer.h"
+/* IWYU pragma: no_forward_declare yyguts_t */
+
#undef YY_NO_UNPUT
#define cmFortranLexer_cxx