From 005a077310f2f362a3f1147fdf38ae381d858d42 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 29 Jun 2019 11:43:37 -0600 Subject: [PATCH] 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. --- tools/nxstyle.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/nxstyle.c b/tools/nxstyle.c index be8dac8f1e..69f88009a6 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -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);