diff options
author | Brad King <brad.king@kitware.com> | 2005-02-01 15:42:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-02-01 15:42:52 (GMT) |
commit | 04e56bf7ff622e9dd741b1ff28b3cbcb87b3a620 (patch) | |
tree | 6733f3e2da83fc880fd5bcad5926bfe6abc03158 /Source/cmDependsFortranParser.h | |
parent | 51db85934fd0a0b879cdb880ccbf1eca1dd28c35 (diff) | |
download | CMake-04e56bf7ff622e9dd741b1ff28b3cbcb87b3a620.zip CMake-04e56bf7ff622e9dd741b1ff28b3cbcb87b3a620.tar.gz CMake-04e56bf7ff622e9dd741b1ff28b3cbcb87b3a620.tar.bz2 |
ENH: Changed over to using C++ for building flex/bison generated files. It reduces the number of changes that need to be made after generation.
Diffstat (limited to 'Source/cmDependsFortranParser.h')
-rw-r--r-- | Source/cmDependsFortranParser.h | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/Source/cmDependsFortranParser.h b/Source/cmDependsFortranParser.h index 44cb1d5..468682f 100644 --- a/Source/cmDependsFortranParser.h +++ b/Source/cmDependsFortranParser.h @@ -17,14 +17,11 @@ #ifndef cmDependsFortranParser_h #define cmDependsFortranParser_h +#include <stddef.h> /* size_t */ + /* Forward declare parser object type. */ typedef struct cmDependsFortranParser_s cmDependsFortranParser; -#ifdef __cplusplus -extern "C" -{ -#endif - /* Functions to enter/exit #include'd files in order. */ int cmDependsFortranParser_FilePush(cmDependsFortranParser* parser, const char* fname); @@ -63,8 +60,26 @@ void cmDependsFortranParser_RuleElif(cmDependsFortranParser* parser); void cmDependsFortranParser_RuleElse(cmDependsFortranParser* parser); void cmDependsFortranParser_RuleEndif(cmDependsFortranParser* parser); -#ifdef __cplusplus -} /* extern "C" */ +/* Define the parser stack element type. */ +typedef union cmDependsFortran_yystype_u cmDependsFortran_yystype; +union cmDependsFortran_yystype_u +{ + char* string; +}; + +/* Setup the proper yylex interface. */ +#define YY_EXTRA_TYPE cmDependsFortranParser* +#define YY_DECL int cmDependsFortran_yylex(YYSTYPE* yylvalp, yyscan_t yyscanner) +#define YYSTYPE cmDependsFortran_yystype +#define YYSTYPE_IS_DECLARED 1 +#if !defined(cmDependsFortranLexer_cxx) +# include "cmDependsFortranLexer.h" +#endif +#if !defined(cmDependsFortranLexer_cxx) && !defined(cmDependsFortranParser_cxx) +# undef YY_EXTRA_TYPE +# undef YY_DECL +# undef YYSTYPE +# undef YYSTYPE_IS_DECLARED #endif #endif |