[Cmake-commits] [cmake-commits] king committed cmCommandArgumentLexer.cxx 1.17 1.18 cmCommandArgumentLexer.in.l 1.12 1.13

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Dec 18 09:58:08 EST 2008


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv27129/Source

Modified Files:
	cmCommandArgumentLexer.cxx cmCommandArgumentLexer.in.l 
Log Message:
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.


Index: cmCommandArgumentLexer.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCommandArgumentLexer.cxx,v
retrieving revision 1.17
retrieving revision 1.18
diff -C 2 -d -r1.17 -r1.18
*** cmCommandArgumentLexer.cxx	17 Dec 2008 14:33:18 -0000	1.17
--- cmCommandArgumentLexer.cxx	18 Dec 2008 14:58:06 -0000	1.18
***************
*** 1,2 ****
--- 1,18 ----
+ /*=========================================================================
+ 
+   Program:   CMake - Cross-Platform Makefile Generator
+   Module:    $RCSfile$
+   Language:  C++
+   Date:      $Date$
+   Version:   $Revision$
+ 
+   Copyright (c) 2002 Kitware, Inc., Insight Consortium.  All rights reserved.
+   See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
+ 
+      This software is distributed WITHOUT ANY WARRANTY; without even
+      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+      PURPOSE.  See the above copyright notices for more information.
+ 
+ =========================================================================*/
  #include "cmStandardIncludes.h"
  
***************
*** 478,481 ****
--- 494,498 ----
  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:
***************
*** 483,486 ****
--- 500,504 ----
    - 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:
***************
*** 1062,1065 ****
--- 1080,1084 ----
          } /* end of action switch */
                  } /* end of scanning one token */
+ return 0; /* this should not happend but it should silence a warning */
  } /* end of cmCommandArgument_yylex */
  

Index: cmCommandArgumentLexer.in.l
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCommandArgumentLexer.in.l,v
retrieving revision 1.12
retrieving revision 1.13
diff -C 2 -d -r1.12 -r1.13
*** cmCommandArgumentLexer.in.l	17 Dec 2008 14:33:18 -0000	1.12
--- cmCommandArgumentLexer.in.l	18 Dec 2008 14:58:06 -0000	1.13
***************
*** 26,29 ****
--- 26,30 ----
  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:
***************
*** 31,34 ****
--- 32,36 ----
    - 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:



More information about the Cmake-commits mailing list