summaryrefslogtreecommitdiffstats
path: root/Source/cmFortranParser.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-04-18 17:56:01 (GMT)
committerBrad King <brad.king@kitware.com>2018-04-20 14:56:54 (GMT)
commit62538b2c4c70eeef52886092e24c97a9a7699a00 (patch)
treed9e7463225c078105c2879d283191ac7fb14f57d /Source/cmFortranParser.h
parentfe0082875aeecead23b2351629abca4990dfba43 (diff)
downloadCMake-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.h5
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);