Filename check now only for implementation modules
This commit is contained in:
parent
4f11d0433d
commit
5362ef6f20
|
@ -235,15 +235,16 @@ definition
|
|||
ProgramModule
|
||||
{
|
||||
register t_def *df;
|
||||
int len;
|
||||
} :
|
||||
MODULE
|
||||
IDENT { len = strlen(dot.TOK_IDF->id_text);
|
||||
IDENT {
|
||||
if (state == IMPLEMENTATION) {
|
||||
int len = strlen(dot.TOK_IDF->id_text);
|
||||
|
||||
if (len > 10) len = 10;
|
||||
if (strncmp(FileName, dot.TOK_IDF->id_text, len)) {
|
||||
warning(W_ORDINARY, "modulename %s does not match filename %s", dot.TOK_IDF->id_text, FileName);
|
||||
}
|
||||
if (state == IMPLEMENTATION) {
|
||||
df = GetDefinitionModule(dot.TOK_IDF, 0);
|
||||
CurrVis = df->mod_vis;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue