nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aguettou...@apache.org
Subject [incubator-nuttx] branch master updated: tools/nxstyle.c: All Public Function Prototypes in C files
Date Wed, 01 Apr 2020 21:58:02 GMT
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 <gnutt@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
   }
 };
 


Mime
View raw message