tools/nxstyle.c: Tool depends on the file under test containing "Private Functions" or "Public Functions" block comments. Emit an error is neither are present.
This commit is contained in:
parent
61f3881132
commit
005a077310
@ -1599,9 +1599,15 @@ int main(int argc, char **argv, char **envp)
|
||||
}
|
||||
}
|
||||
|
||||
if (!bfunctions)
|
||||
{
|
||||
fprintf(stderr, "ERROR: \"Private/Public Functions\" not found!\n");
|
||||
fprintf(stderr, " File could not be checked.\n");
|
||||
}
|
||||
|
||||
if (ncomment > 0 || bstring)
|
||||
{
|
||||
fprintf(stderr, "In a comment/string at end of file\n");
|
||||
fprintf(stderr, "ERROR: In a comment/string at end of file\n");
|
||||
}
|
||||
|
||||
fclose(instream);
|
||||
|
Loading…
Reference in New Issue
Block a user