From a34e5fc043a447ae26a691a262744076fcf21143 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 1 Apr 2020 13:38:53 -0600 Subject: [PATCH] tools/nxstyle.c: All Public Function Prototypes in C files Allow "Public Function Prototypes" sections in .c files. Per the coding standard, all public function prototypes belong in .c files. However, there are some situations when the public function prototype is needed in a .c file and it shoudld, most correctly, be placed in a "Public Function Prototypes" section. --- tools/nxstyle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/nxstyle.c b/tools/nxstyle.c index 8fd1da6a03..e6e3c67a3c 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -176,7 +176,7 @@ static const struct file_section_s g_section_info[] = }, { " * Public Function Prototypes\n", /* Index: PUBLIC_FUNCTION_PROTOTYPES */ - C_HEADER + C_SOURCE | C_HEADER } };