This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit ada3e771a669ccb793b5bb661797645895a1f568
Author: Marco Casaroli <[email protected]>
AuthorDate: Wed Oct 28 16:48:07 2026 +0100

    tools/nxstyle: Accept the PDC_ prefix of PDCurses.
    
    The PDCurses API in nuttx-apps (include/graphics/curses.h and
    graphics/pdcurs34) names its internal functions and data with the
    prefix PDC_, for example PDC_ctx() and PDC_clear_screen().  nxstyle
    reports each of them as a mixed case identifier, so checkpatch fails
    on these files when a change touches them.  Add PDC_ to the prefixes
    that nxstyle accepts, as GL for tinygl.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 tools/nxstyle.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/nxstyle.c b/tools/nxstyle.c
index ac6811ffcf5..9598948d3be 100644
--- a/tools/nxstyle.c
+++ b/tools/nxstyle.c
@@ -195,6 +195,7 @@ static const char *g_white_prefix[] =
   "Elf",     /* Ref:  include/elf.h, include/elf32.h, include/elf64.h */
   "GL",      /* Ref:  apps/graphics/tinygl/tinygl/include/GL/gl.h */
   "Ifx",     /* Ref:  arch/tricore/src */
+  "PDC_",    /* Ref:  apps/include/graphics/curses.h */
   "PRId",    /* Ref:  inttypes.h */
   "PRIi",    /* Ref:  inttypes.h */
   "PRIo",    /* Ref:  inttypes.h */

Reply via email to