1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmStandardLexer.h,v $
6 Date: $Date: 2006/08/24 13:34:53 $
7 Version: $Revision: 1.4 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmStandardLexer_h
18 #define cmStandardLexer_h
20 /* Disable some warnings. */
22 # pragma warning ( disable : 4127 )
23 # pragma warning ( disable : 4131 )
24 # pragma warning ( disable : 4244 )
25 # pragma warning ( disable : 4251 )
26 # pragma warning ( disable : 4267 )
27 # pragma warning ( disable : 4305 )
28 # pragma warning ( disable : 4309 )
29 # pragma warning ( disable : 4706 )
30 # pragma warning ( disable : 4786 )
33 #if defined(__BORLANDC__)
34 # pragma warn -8008 /* condition always returns true */
35 # pragma warn -8066 /* unreachable code */
38 /* Borland system header defines these macros without first undef-ing them. */
39 #if defined(__BORLANDC__) && __BORLANDC__ >= 0x580
52 /* Make sure SGI termios does not define ECHO differently. */
53 #if defined(__sgi) && !defined(__GNUC__)
54 # include <sys/termios.h>
58 /* Define isatty on windows. */
59 #if defined(_WIN32) && !defined(__CYGWIN__)
61 # if defined( _MSC_VER )
62 # define isatty _isatty
64 # define YY_NO_UNISTD_H 1
67 /* Make sure malloc and free are available on QNX. */
72 /* Disable features we do not need. */
73 #define YY_NEVER_INTERACTIVE 1