You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.1 KiB

  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef cmStandardLexer_h
  14. #define cmStandardLexer_h
  15. /* Disable some warnings. */
  16. #if defined(_MSC_VER)
  17. # pragma warning ( disable : 4127 )
  18. # pragma warning ( disable : 4131 )
  19. # pragma warning ( disable : 4244 )
  20. # pragma warning ( disable : 4251 )
  21. # pragma warning ( disable : 4267 )
  22. # pragma warning ( disable : 4305 )
  23. # pragma warning ( disable : 4309 )
  24. # pragma warning ( disable : 4706 )
  25. # pragma warning ( disable : 4786 )
  26. #endif
  27. #if defined(__BORLANDC__)
  28. # pragma warn -8008 /* condition always returns true */
  29. # pragma warn -8066 /* unreachable code */
  30. #endif
  31. /* Borland system header defines these macros without first undef-ing them. */
  32. #if defined(__BORLANDC__) && __BORLANDC__ >= 0x580
  33. # undef INT8_MIN
  34. # undef INT16_MIN
  35. # undef INT32_MIN
  36. # undef INT8_MAX
  37. # undef INT16_MAX
  38. # undef INT32_MAX
  39. # undef UINT8_MAX
  40. # undef UINT16_MAX
  41. # undef UINT32_MAX
  42. # include <stdint.h>
  43. #endif
  44. /* Make sure SGI termios does not define ECHO differently. */
  45. #if defined(__sgi) && !defined(__GNUC__)
  46. # include <sys/termios.h>
  47. # undef ECHO
  48. #endif
  49. /* Define isatty on windows. */
  50. #if defined(_WIN32) && !defined(__CYGWIN__)
  51. # include <io.h>
  52. # if defined( _MSC_VER )
  53. # define isatty _isatty
  54. # endif
  55. # define YY_NO_UNISTD_H 1
  56. #endif
  57. /* Make sure malloc and free are available on QNX. */
  58. #ifdef __QNX__
  59. # include <malloc.h>
  60. #endif
  61. /* Disable features we do not need. */
  62. #define YY_NEVER_INTERACTIVE 1
  63. #define YY_NO_INPUT 1
  64. #define YY_NO_UNPUT 1
  65. #define ECHO
  66. #endif