diff options
author | Brad King <brad.king@kitware.com> | 2007-12-17 22:55:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-12-17 22:55:03 (GMT) |
commit | ca5c5fc770570e5b8c18bed72a2288125b5cfc05 (patch) | |
tree | a6f3949f3802c73115b4b62dc4cfaaec2543eb1f /Source/cmDependsFortranParser.y | |
parent | 44f38c9b863a32980b5c2a75c7639d0c1c82f33a (diff) | |
download | CMake-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.y | 14 |
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); |