summaryrefslogtreecommitdiff
path: root/Source/cmCommandArgumentLexer.in.l
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-12-18 09:58:06 -0500
committerBrad King <brad.king@kitware.com>2008-12-18 09:58:06 -0500
commit62a9fc7e945d89d67e41e7d8b220694150f335bf (patch)
tree48fda90de88426a444e75ae5714afbc7c43e6974 /Source/cmCommandArgumentLexer.in.l
parent8d4eda578173da303493745825ee069d7bb74dfb (diff)
downloadcmake-62a9fc7e945d89d67e41e7d8b220694150f335bf.tar.gz
COMP: Restore fixes to generated lexer
The command argument lexer was recently regenerated which erased some fixes that had been applied directly to the output. This restores the fixes and adds reminder notes in the generation instructions.
Diffstat (limited to 'Source/cmCommandArgumentLexer.in.l')
-rw-r--r--Source/cmCommandArgumentLexer.in.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmCommandArgumentLexer.in.l b/Source/cmCommandArgumentLexer.in.l
index b8239273b3..86cd10d863 100644
--- a/Source/cmCommandArgumentLexer.in.l
+++ b/Source/cmCommandArgumentLexer.in.l
@@ -25,11 +25,13 @@ Run flex like this:
Modify cmCommandArgumentLexer.cxx:
- add #include "cmStandardIncludes.h" to top of file
+ - put header block at top of file
- remove TABs
- remove "yyscanner" argument from these methods:
yy_fatal_error, cmCommandArgument_yyalloc, cmCommandArgument_yyrealloc, cmCommandArgument_yyfree
- remove all YY_BREAK lines occurring right after return statements
- change while ( 1 ) to for(;;)
+ - add "return 0;" to end of cmCommandArgument_yylex
Modify cmCommandArgumentLexer.h:
- remove TABs