From f878390c6d8fdebda351aeeab8a6a603b6610a8e Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Sat, 3 Apr 2021 17:37:27 +0200 Subject: [PATCH] tools: nxstyle: add exception for X11 keysymdef Add exception for XK_* Mixed Case defined by X11 keysymdef.h Signed-off-by: Alin Jerpelea --- tools/nxstyle.c | 46 ++++++++++------------------------------------ 1 file changed, 10 insertions(+), 36 deletions(-) diff --git a/tools/nxstyle.c b/tools/nxstyle.c index 9fe0aea04a..7d1c05bef4 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -201,6 +201,9 @@ static const char *g_white_prefix[] = "ub8", /* Ref: include/fixedmath.h */ "ub16", /* Ref: include/fixedmath.h */ "ub32", /* Ref: include/fixedmath.h */ + "ASCII_", /* Ref: include/nuttx/ascii.h */ + "XK_", /* Ref: include/input/X11_keysymdef.h */ + NULL }; @@ -234,46 +237,17 @@ static const char *g_white_list[] = "L_tmpnam", - /* Ref: ascii.h */ - - "ASCII_a", - "ASCII_b", - "ASCII_c", - "ASCII_d", - "ASCII_e", - "ASCII_f", - "ASCII_g", - "ASCII_h", - "ASCII_i", - "ASCII_j", - "ASCII_k", - "ASCII_l", - "ASCII_m", - "ASCII_n", - "ASCII_o", - "ASCII_p", - "ASCII_q", - "ASCII_r", - "ASCII_s", - "ASCII_t", - "ASCII_u", - "ASCII_v", - "ASCII_w", - "ASCII_x", - "ASCII_y", - "ASCII_z", - -/* Ref: - * nuttx/compiler.h - */ + /* Ref: + * nuttx/compiler.h + */ "_Far", "_Erom", -/* Ref: - * fs/nfs/rpc.h - * fs/nfs/nfs_proto.h - */ + /* Ref: + * fs/nfs/rpc.h + * fs/nfs/nfs_proto.h + */ "CREATE3args", "CREATE3resok",