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 90b71fb8835 tools/nxstyle: allow CPython API identifiers
90b71fb8835 is described below
commit 90b71fb88352a8e7efbc2bba3bb953aef9a30ce2
Author: raiden00pl <[email protected]>
AuthorDate: Sat Aug 22 14:03:00 2026 +0200
tools/nxstyle: allow CPython API identifiers
CPython exposes mixed-case PyMem_* and PyOS_* names that applications
cannot rename.
Signed-off-by: raiden00pl <[email protected]>
---
tools/nxstyle.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/nxstyle.c b/tools/nxstyle.c
index 546f0316ec2..8beec3dc44a 100644
--- a/tools/nxstyle.c
+++ b/tools/nxstyle.c
@@ -218,6 +218,8 @@ static const char *g_white_prefix[] =
"ub32", /* Ref: include/fixedmath.h */
"lua_", /* Ref: apps/interpreters/lua/lua-5.x.x/src/lua.h */
"luaL_", /* Ref: apps/interpreters/lua/lua-5.x.x/src/lauxlib.h */
+ "PyMem_", /* Ref: apps/interpreters/python */
+ "PyOS_", /* Ref: apps/interpreters/python */
"Ba", /* Ref: apps/netutils/xedge/BAS/examples/xedge/src/xedge.h */
"Thread", /* Ref: apps/netutils/xedge/BAS/examples/xedge/src/xedge.h */
"LThread", /* Ref: apps/netutils/xedge/BAS/examples/xedge/src/xedge.h */