summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsFortranLexer.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-05-22 18:07:24 (GMT)
committerBrad King <brad.king@kitware.com>2012-05-22 18:07:24 (GMT)
commitad2107903a28e8e41b3170ee6089f7c080c49614 (patch)
tree27679f4929b4034f2b9eb75b42e46bd11d87c123 /Source/cmDependsFortranLexer.h
parentf2656e4ccb7b05cb1bef17ccf61dc9af7ed3f5fc (diff)
downloadCMake-ad2107903a28e8e41b3170ee6089f7c080c49614.zip
CMake-ad2107903a28e8e41b3170ee6089f7c080c49614.tar.gz
CMake-ad2107903a28e8e41b3170ee6089f7c080c49614.tar.bz2
Fortran: Follow <>-style includes (#13239)
Fortran sources that pass through the C preprocessor may use #include "header" syntax or #include <header> syntax. CMake already follows the former. Teach it to follow the latter.
Diffstat (limited to 'Source/cmDependsFortranLexer.h')
-rw-r--r--Source/cmDependsFortranLexer.h25
1 files changed, 16 insertions, 9 deletions
diff --git a/Source/cmDependsFortranLexer.h b/Source/cmDependsFortranLexer.h
index 85e861d..8e24cfd 100644
--- a/Source/cmDependsFortranLexer.h
+++ b/Source/cmDependsFortranLexer.h
@@ -20,7 +20,7 @@
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
-#define YY_FLEX_SUBMINOR_VERSION 34
+#define YY_FLEX_SUBMINOR_VERSION 35
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
@@ -65,7 +65,6 @@ typedef int flex_int32_t;
typedef unsigned char flex_uint8_t;
typedef unsigned short int flex_uint16_t;
typedef unsigned int flex_uint32_t;
-#endif /* ! C99 */
/* Limits of integral types. */
#ifndef INT8_MIN
@@ -96,6 +95,8 @@ typedef unsigned int flex_uint32_t;
#define UINT32_MAX (4294967295U)
#endif
+#endif /* ! C99 */
+
#endif /* ! FLEXINT_H */
#ifdef __cplusplus
@@ -138,7 +139,15 @@ typedef void* yyscan_t;
/* Size of default input buffer. */
#ifndef YY_BUF_SIZE
+#ifdef __ia64__
+/* On IA-64, the buffer size is 16k, not 8k.
+ * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
+ * Ditto for the __ia64__ case accordingly.
+ */
+#define YY_BUF_SIZE 32768
+#else
#define YY_BUF_SIZE 16384
+#endif /* __ia64__ */
#endif
#ifndef YY_TYPEDEF_YY_BUFFER_STATE
@@ -146,13 +155,6 @@ typedef void* yyscan_t;
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif
-/* The following is because we cannot portably get our hands on size_t
- * (without autoconf's help, which isn't available because we want
- * flex-generated scanners to compile on their own).
- * Given that the standard has decreed that size_t exists since 1989,
- * I guess we can afford to depend on it. Manoj.
- */
-
#ifndef YY_TYPEDEF_YY_SIZE_T
#define YY_TYPEDEF_YY_SIZE_T
typedef size_t yy_size_t;
@@ -304,7 +306,12 @@ static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
+#ifdef __ia64__
+/* On IA-64, the buffer size is 16k, not 8k */
+#define YY_READ_BUF_SIZE 16384
+#else
#define YY_READ_BUF_SIZE 8192
+#endif /* __ia64__ */
#endif
/* Number of entries by which start-condition stack grows. */