summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsFortranParser.y
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-12-17 22:55:03 (GMT)
committerBrad King <brad.king@kitware.com>2007-12-17 22:55:03 (GMT)
commitca5c5fc770570e5b8c18bed72a2288125b5cfc05 (patch)
treea6f3949f3802c73115b4b62dc4cfaaec2543eb1f /Source/cmDependsFortranParser.y
parent44f38c9b863a32980b5c2a75c7639d0c1c82f33a (diff)
downloadCMake-ca5c5fc770570e5b8c18bed72a2288125b5cfc05.zip
CMake-ca5c5fc770570e5b8c18bed72a2288125b5cfc05.tar.gz
CMake-ca5c5fc770570e5b8c18bed72a2288125b5cfc05.tar.bz2
BUG: Fix parsing of #include preprocessor directives.
Diffstat (limited to 'Source/cmDependsFortranParser.y')
-rw-r--r--Source/cmDependsFortranParser.y14
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/cmDependsFortranParser.y b/Source/cmDependsFortranParser.y
index a588474..8e6456d 100644
--- a/Source/cmDependsFortranParser.y
+++ b/Source/cmDependsFortranParser.y
@@ -208,18 +208,14 @@ keyword_stmt:
}
free($1);
}
-| WORD STRING other EOSTMT
+| WORD STRING other EOSTMT /* Ignore */
+| include STRING other EOSTMT
{
- if (cmDependsFortranParserIsKeyword($1, "include"))
- {
- cmDependsFortranParser* parser =
- cmDependsFortran_yyget_extra(yyscanner);
- cmDependsFortranParser_RuleInclude(parser, $2);
- }
- free($1);
+ cmDependsFortranParser* parser =
+ cmDependsFortran_yyget_extra(yyscanner);
+ cmDependsFortranParser_RuleInclude(parser, $2);
free($2);
}
-| CPP_INCLUDE WORD other EOSTMT /* Ignore */
| define WORD other EOSTMT
{
cmDependsFortranParser* parser = cmDependsFortran_yyget_extra(yyscanner);