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 652e152  tools/nxstyle:  Ignore stub names that begin with STUB_*
652e152 is described below

commit 652e152d66a87bcc23c1635cad41a1a1d28ac9d3
Author: Gregory Nutt <[email protected]>
AuthorDate: Sat Mar 21 11:38:00 2020 -0600

    tools/nxstyle:  Ignore stub names that begin with STUB_*
    
    The names use for stub functions follows a non-standard convention:  They 
begin with STUB_
---
 tools/nxstyle.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/nxstyle.c b/tools/nxstyle.c
index 5c12d55..8ed4536 100644
--- a/tools/nxstyle.c
+++ b/tools/nxstyle.c
@@ -1459,7 +1459,8 @@ int main(int argc, char **argv, char **envp)
                    */
 
                   if ((strncmp(&line[ident_index], "PRIx", 4) == 0) ||
-                      (strncmp(&line[ident_index], "SYS_", 4) == 0))
+                      (strncmp(&line[ident_index], "SYS_", 4) == 0) ||
+                      (strncmp(&line[ident_index], "STUB_", 5) == 0))
                     {
                       /* No error */
                     }

Reply via email to