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:
Gregory Nutt 2019-06-29 11:43:37 -06:00
parent 61f3881132
commit 005a077310

View File

@ -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) 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); fclose(instream);