mirror of
https://github.com/apache/nuttx.git
synced 2026-10-03 04:07:55 +00:00
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 <acassis@gmail.com>
This commit is contained in:
parent
0942bae6ef
commit
a315d19fac
1 changed files with 3 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue