1
0
Fork 0
forked from nuttx/nuttx-update

tools/nxstyle: Ignore stub names that begin with STUB_*

The names use for stub functions follows a non-standard convention:  They begin with STUB_
This commit is contained in:
Gregory Nutt 2020-03-21 11:38:00 -06:00 committed by Abdelatif Guettouche
parent 0456b70cd5
commit 652e152d66

View file

@ -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 */
}