summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileLexer.in.l
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-12-14 14:52:05 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-12-14 14:52:05 (GMT)
commit788581883fef05820f3f83ec5d1456490bc2397f (patch)
tree00c32a850d1b6701a7ba7ad40ead0d27415b09c1 /Source/cmListFileLexer.in.l
parent60e5f61917815289c80c31880e5c90bdf81eefb8 (diff)
parentc5df1f165c7f8f1e31e3144d326c6836af2e678d (diff)
downloadCMake-788581883fef05820f3f83ec5d1456490bc2397f.zip
CMake-788581883fef05820f3f83ec5d1456490bc2397f.tar.gz
CMake-788581883fef05820f3f83ec5d1456490bc2397f.tar.bz2
Merge topic 'rebuild-lexers'
c5df1f16 Regenerate lexer source code
Diffstat (limited to 'Source/cmListFileLexer.in.l')
-rw-r--r--Source/cmListFileLexer.in.l13
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/cmListFileLexer.in.l b/Source/cmListFileLexer.in.l
index 75df1bc..4b389b9 100644
--- a/Source/cmListFileLexer.in.l
+++ b/Source/cmListFileLexer.in.l
@@ -7,18 +7,19 @@ This file must be translated to C and modified to build everywhere.
Run flex >= 2.6 like this:
- flex --prefix=cmListFileLexer_yy -ocmListFileLexer.c cmListFileLexer.in.l
+ flex --nounistd -DFLEXINT_H --prefix=cmListFileLexer_yy -ocmListFileLexer.c cmListFileLexer.in.l
Modify cmListFileLexer.c:
- remove trailing whitespace: sed -i 's/\s*$//' cmListFileLexer.c
- remove blank lines at end of file
- - remove statement "yyscanner = NULL;" from cmListFileLexer_yylex_destroy
- - remove all YY_BREAK lines occurring right after return statements
- - remove unnecessary cast to (int) in yy_get_next_buffer
+ - #include "cmStandardLexer.h" at the top
+ - add cast in yy_scan_bytes for loop condition of _yybytes_len to size_t
+ - change type of variable yyl under yy_find_action from yy_size_t to int
*/
-#include "cmStandardLexer.h"
+/* IWYU pragma: no_forward_declare yyguts_t */
+
#ifdef WIN32
#include <cmsys/Encoding.h>
#endif
@@ -33,7 +34,7 @@ Modify cmListFileLexer.c:
struct cmListFileLexer_s
{
cmListFileLexer_Token token;
- yy_size_t bracket;
+ int bracket;
int comment;
int line;
int column;