This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new a315d19face tools/nxstyle: allow the OpenGL and TinyGL identifier
prefixes
a315d19face is described below
commit a315d19face962d8de1d31c469bdbf0e83e7b74e
Author: Alan Carvalho de Assis <[email protected]>
AuthorDate: Thu Sep 24 09:57:33 2026 -0300
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 <[email protected]>
---
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 */