You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/11/22 08:28:05 UTC
[incubator-nuttx] 02/02: tools/nxstyle: add more white list for sim arch
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit f1837e7e966d96b371674c12d329f7c9c2d9466f
Author: zhangyuan21 <zh...@xiaomi.com>
AuthorDate: Sat Nov 19 20:46:37 2022 +0800
tools/nxstyle: add more white list for sim arch
---
tools/nxstyle.c | 134 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 134 insertions(+)
diff --git a/tools/nxstyle.c b/tools/nxstyle.c
index a13673d40b..2dffad07d4 100644
--- a/tools/nxstyle.c
+++ b/tools/nxstyle.c
@@ -359,6 +359,140 @@ static const char *g_white_list[] =
"RTOS_SetThreadRegList",
"RTOS_UpdateThreads",
+ /* Ref:
+ * sim/posix/sim_x11eventloop.c
+ */
+
+ "Display",
+ "Button1Mask",
+ "Button2Mask",
+ "Button3Mask",
+ "Button1",
+ "Button2",
+ "Button3",
+ "XEvent",
+ "XPending",
+ "XNextEvent",
+ "KeyPress",
+ "KeyRelease",
+ "MotionNotify",
+ "ButtonPress",
+ "ButtonRelease",
+ "XLookupKeysym",
+
+ /* Ref:
+ * sim/posix/sim_x11framebuffer.c
+ */
+
+ "Window",
+ "XShmSegmentInfo",
+ "XImage",
+ "XGCValues",
+ "XTextProperty",
+ "XSizeHints",
+ "XOpenDisplay",
+ "XCreateSimpleWindow",
+ "DefaultRootWindow",
+ "XStringListToTextProperty",
+ "XSetWMProperties",
+ "XMapWindow",
+ "XSelectInput",
+ "XAllowEvents",
+ "XGrabButton",
+ "XCreateGC",
+ "XSetErrorHandler",
+ "XSync",
+ "XShmDetach",
+ "XDestroyImage",
+ "XUngrabButton",
+ "XCloseDisplay",
+ "XShmQueryExtension",
+ "XShmCreateImage",
+ "XShmAttach",
+ "DefaultVisual",
+ "XCreateImage",
+ "XGetWindowAttributes",
+ "DefaultColormap",
+ "XAllocColor",
+ "XShmPutImage",
+ "XPutImage",
+ "Colormap",
+ "DefaultScreen",
+ "BlackPixel",
+ "PSize",
+ "PMinSize",
+ "PMaxSize",
+ "ButtonPressMask",
+ "ButtonReleaseMask",
+ "PointerMotionMask",
+ "KeyPressMask",
+ "KeyReleaseMask",
+ "ButtonMotionMask",
+ "GrabModeAsync",
+ "GCGraphicsExposures",
+ "XErrorEvent",
+ "AnyModifier",
+ "None",
+ "Status",
+ "DoGreen",
+ "DoRed",
+ "DoBlue",
+ "ZPixmap",
+ "readOnly",
+ "XWindowAttributes",
+ "XColor",
+ "AsyncBoth",
+ "CurrentTime",
+
+ /* Ref:
+ * sim/posix/sim_deviceimage.c
+ */
+
+ "inflateInit",
+ "inflateEnd",
+ "Bytef",
+
+ /* Ref:
+ * sim/posix/sim_hostmemory.c
+ */
+
+ "CreateFileMapping",
+ "MapViewOfFile",
+ "CloseHandle",
+ "UnmapViewOfFile",
+
+ /* Ref:
+ * sim/posix/sim_hostmisc.c
+ */
+
+ "CaptureStackBackTrace",
+
+ /* Ref:
+ * sim/posix/sim_hosttime.c
+ */
+
+ "GetSystemTimeAsFileTime",
+ "QueryPerformanceFrequency",
+ "QueryPerformanceCounter",
+ "CreateWaitableTimer",
+ "SetWaitableTimer",
+ "WaitForSingleObject",
+ "dwHighDateTime",
+ "dwLowDateTime",
+ "QuadPart",
+
+ /* Ref:
+ * sim/posix/sim_simuart.c
+ */
+
+ "GetStdHandle",
+ "GetConsoleMode",
+ "SetConsoleMode",
+ "WriteConsole",
+ "ReadConsole",
+ "FlushConsoleInputBuffer",
+ "GetNumberOfConsoleInputEvents",
+
NULL
};