From a315d19face962d8de1d31c469bdbf0e83e7b74e Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Thu, 24 Sep 2026 09:57:33 -0300 Subject: [PATCH] tools/nxstyle: allow the OpenGL and TinyGL identifier prefixes OpenGL names are mixed case by definition (glVertex3f(), GLfloat, GL_QUADS) and so are the TinyGL framebuffer helpers (ZBuffer, ZB_open()), so any application that uses apps/graphics/tinygl fails the "Mixed case identifier" check on every GL call. Add "gl", "GL" and "ZB" to the list of white-listed prefixes, like the existing entries for other third party APIs (lua_, cJSON, XK_, ...). Assisted-by: Claude Opus 5.5 (1M context) Signed-off-by: Alan Carvalho de Assis --- tools/nxstyle.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/nxstyle.c b/tools/nxstyle.c index 4d0fa00b33b..151c7bb38ec 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -193,6 +193,7 @@ static const char *g_white_prefix[] = "ASCII_", /* Ref: include/nuttx/ascii.h */ "Dl_info", /* Ref: include/dlfcn.h */ "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 */ "PRId", /* Ref: inttypes.h */ "PRIi", /* Ref: inttypes.h */ @@ -213,6 +214,8 @@ static const char *g_white_prefix[] = "b16", /* Ref: include/fixedmath.h */ "b32", /* Ref: include/fixedmath.h */ "cJSON", /* Ref: apps/wireless/wapi/src */ + "gl", /* Ref: apps/graphics/tinygl/tinygl/include/GL/gl.h */ + "ZB", /* Ref: apps/graphics/tinygl/tinygl/include/zbuffer.h */ "ub8", /* Ref: include/fixedmath.h */ "ub16", /* Ref: include/fixedmath.h */ "ub32", /* Ref: include/fixedmath.h */