From 90b71fb88352a8e7efbc2bba3bb953aef9a30ce2 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Sat, 22 Aug 2026 14:03:00 +0200 Subject: [PATCH] tools/nxstyle: allow CPython API identifiers CPython exposes mixed-case PyMem_* and PyOS_* names that applications cannot rename. Signed-off-by: raiden00pl --- 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 */