diff options
author | Brad King <brad.king@kitware.com> | 2018-04-18 17:56:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-04-20 14:56:54 (GMT) |
commit | 62538b2c4c70eeef52886092e24c97a9a7699a00 (patch) | |
tree | d9e7463225c078105c2879d283191ac7fb14f57d /Source/cmFortranParser.h | |
parent | fe0082875aeecead23b2351629abca4990dfba43 (diff) | |
download | CMake-62538b2c4c70eeef52886092e24c97a9a7699a00.zip CMake-62538b2c4c70eeef52886092e24c97a9a7699a00.tar.gz CMake-62538b2c4c70eeef52886092e24c97a9a7699a00.tar.bz2 |
Fortran: Refactor to treat .mod extension as part of module name
When tracking module names internally, include the `.mod` extension.
This will later be useful to distinguish them from `.smod` extensions
for submodules.
Diffstat (limited to 'Source/cmFortranParser.h')
-rw-r--r-- | Source/cmFortranParser.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmFortranParser.h b/Source/cmFortranParser.h index 3f5ad87..5a0bb09 100644 --- a/Source/cmFortranParser.h +++ b/Source/cmFortranParser.h @@ -39,11 +39,12 @@ int cmFortranParser_GetOldStartcond(cmFortranParser* parser); /* Callbacks for parser. */ void cmFortranParser_Error(cmFortranParser* parser, const char* message); -void cmFortranParser_RuleUse(cmFortranParser* parser, const char* name); +void cmFortranParser_RuleUse(cmFortranParser* parser, const char* module_name); void cmFortranParser_RuleLineDirective(cmFortranParser* parser, const char* filename); void cmFortranParser_RuleInclude(cmFortranParser* parser, const char* name); -void cmFortranParser_RuleModule(cmFortranParser* parser, const char* name); +void cmFortranParser_RuleModule(cmFortranParser* parser, + const char* module_name); void cmFortranParser_RuleDefine(cmFortranParser* parser, const char* name); void cmFortranParser_RuleUndef(cmFortranParser* parser, const char* name); void cmFortranParser_RuleIfdef(cmFortranParser* parser, const char* name); |