Skip to content

Commit

Permalink
fixup! feat: replace custom bool type with bool type in stdbool.h
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Aug 25, 2024
1 parent 8f934b0 commit e52fe0b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/cases/test_mainloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions tests/cases/test_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions tests/test_touch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/** 触点绑定记录列表 */
Expand Down Expand Up @@ -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);
/* 检查该触点是否已经被绑定 */
Expand Down

0 comments on commit e52fe0b

Please sign in to comment.