Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / cmStandardLexer.h
blobe19326b9ef91ee1cf044a98da08a1f0a39be78a3
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmStandardLexer.h,v $
5 Language: C++
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. */
21 #if defined(_MSC_VER)
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 )
31 #endif
33 #if defined(__BORLANDC__)
34 # pragma warn -8008 /* condition always returns true */
35 # pragma warn -8066 /* unreachable code */
36 #endif
38 /* Borland system header defines these macros without first undef-ing them. */
39 #if defined(__BORLANDC__) && __BORLANDC__ >= 0x580
40 # undef INT8_MIN
41 # undef INT16_MIN
42 # undef INT32_MIN
43 # undef INT8_MAX
44 # undef INT16_MAX
45 # undef INT32_MAX
46 # undef UINT8_MAX
47 # undef UINT16_MAX
48 # undef UINT32_MAX
49 # include <stdint.h>
50 #endif
52 /* Make sure SGI termios does not define ECHO differently. */
53 #if defined(__sgi) && !defined(__GNUC__)
54 # include <sys/termios.h>
55 # undef ECHO
56 #endif
58 /* Define isatty on windows. */
59 #if defined(_WIN32) && !defined(__CYGWIN__)
60 # include <io.h>
61 # if defined( _MSC_VER )
62 # define isatty _isatty
63 # endif
64 # define YY_NO_UNISTD_H 1
65 #endif
67 /* Make sure malloc and free are available on QNX. */
68 #ifdef __QNX__
69 # include <malloc.h>
70 #endif
72 /* Disable features we do not need. */
73 #define YY_NEVER_INTERACTIVE 1
74 #define YY_NO_INPUT 1
75 #define YY_NO_UNPUT 1
76 #define ECHO
78 #endif