You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/04/01 21:58:02 UTC
[incubator-nuttx] branch master updated: tools/nxstyle.c: All
Public Function Prototypes in C files
This is an automated email from the ASF dual-hosted git repository.
aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new a34e5fc tools/nxstyle.c: All Public Function Prototypes in C files
a34e5fc is described below
commit a34e5fc043a447ae26a691a262744076fcf21143
Author: Gregory Nutt <gn...@nuttx.org>
AuthorDate: Wed Apr 1 13:38:53 2020 -0600
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 8fd1da6..e6e3c67 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
}
};