Added filename check
This commit is contained in:
parent
96804aa49b
commit
63828b7256
@ -235,9 +235,15 @@ definition
|
|||||||
ProgramModule
|
ProgramModule
|
||||||
{
|
{
|
||||||
register t_def *df;
|
register t_def *df;
|
||||||
|
int len;
|
||||||
} :
|
} :
|
||||||
MODULE
|
MODULE
|
||||||
IDENT { if (state == IMPLEMENTATION) {
|
IDENT { len = strlen(dot.TOK_IDF->id_text);
|
||||||
|
if (len > 10) len = 10;
|
||||||
|
if (strncmp(FileName, dot.TOK_IDF->id_text, 10)) {
|
||||||
|
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);
|
df = GetDefinitionModule(dot.TOK_IDF, 0);
|
||||||
CurrVis = df->mod_vis;
|
CurrVis = df->mod_vis;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user