diff --git a/tests/cases/test_mainloop.c b/tests/cases/test_mainloop.c index 11f5db08d..20c56457b 100644 --- a/tests/cases/test_mainloop.c +++ b/tests/cases/test_mainloop.c @@ -47,7 +47,7 @@ static void OnTriggerBtnClick(void *arg) static void ObserverThread(void *arg) { int i; - LCUI_BOOL *exited = arg; + bool *exited = arg; for (i = 0; i < 20 && !*exited; ++i) { sleep_ms(100); @@ -64,7 +64,7 @@ void test_mainloop(void) { thread_t tid; ui_widget_t *btn; - LCUI_BOOL exited = false; + bool exited = false; lcui_init(); btn = ui_create_widget("button"); diff --git a/tests/cases/test_thread.c b/tests/cases/test_thread.c index 84384907c..2395a7d8d 100644 --- a/tests/cases/test_thread.c +++ b/tests/cases/test_thread.c @@ -17,8 +17,8 @@ typedef struct TestWorkerRec_ { char data[32]; int data_count; - LCUI_BOOL cancel; - LCUI_BOOL active; + bool cancel; + bool active; thread_cond_t cond; thread_mutex_t mutex; thread_t thread; diff --git a/tests/test_touch.c b/tests/test_touch.c index 30285e6c8..979a8c6a6 100644 --- a/tests/test_touch.c +++ b/tests/test_touch.c @@ -21,7 +21,7 @@ typedef struct TouchPointBindingRec_ { int point_id; /**< 触点 ID */ ui_widget_t *widget; /**< 部件 */ list_node_t node; /**< 在链表中的结点 */ - LCUI_BOOL is_valid; /**< 是否有效 */ + bool is_valid; /**< 是否有效 */ } TouchPointBindingRec, *TouchPointBinding; /** 触点绑定记录列表 */ @@ -68,7 +68,7 @@ static void OnTouch(app_event_t *e, void *arg) for (i = 0; i < e->touch.n_points; ++i) { TouchPointBinding binding; - LCUI_BOOL is_existed = false; + bool is_existed = false; point = &e->touch.points[i]; _DEBUG_MSG("point: %d\n", point->id); /* 检查该触点是否已经被绑定 */