mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-03 04:27:44 +08:00
fix for stmf429
This commit is contained in:
parent
c1417104c8
commit
5bcf6f09f3
4
src/base/idle.c
Normal file → Executable file
4
src/base/idle.c
Normal file → Executable file
@ -1,4 +1,4 @@
|
||||
/**
|
||||
/**
|
||||
* File: idle.c
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: idle manager
|
||||
@ -209,7 +209,7 @@ ret_t idle_queue(idle_func_t on_idle, void* ctx) {
|
||||
}
|
||||
|
||||
ret_t idle_set_on_destroy(uint32_t idle_id, tk_destroy_t on_destroy, void* on_destroy_ctx) {
|
||||
idle_info_t* item = idle_find(idle_id);
|
||||
idle_info_t* item = (idle_info_t*)idle_find(idle_id);
|
||||
return_value_if_fail(item != NULL, RET_BAD_PARAMS);
|
||||
|
||||
item->on_destroy = on_destroy;
|
||||
|
3
src/base/line_break.c
Normal file → Executable file
3
src/base/line_break.c
Normal file → Executable file
@ -1,4 +1,4 @@
|
||||
/**
|
||||
/**
|
||||
* File: line_break.c
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: line break and work break algorithm.
|
||||
@ -51,7 +51,6 @@ break_type_t line_break_check(wchar_t c1, wchar_t c2) {
|
||||
}
|
||||
|
||||
break_type_t word_break_check(wchar_t c1, wchar_t c2) {
|
||||
int ret = 0;
|
||||
utf32_t s[2];
|
||||
char brks[2];
|
||||
static bool_t inited = FALSE;
|
||||
|
4
src/base/resource_manager.c
Normal file → Executable file
4
src/base/resource_manager.c
Normal file → Executable file
@ -1,4 +1,4 @@
|
||||
/**
|
||||
/**
|
||||
* File: resource_manager.h
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: resource manager
|
||||
@ -282,7 +282,7 @@ ret_t resource_manager_unref(resource_manager_t* rm, const resource_info_t* info
|
||||
if (!(info->is_in_rom)) {
|
||||
bool_t remove = info->refcount <= 1;
|
||||
|
||||
resource_info_unref(info);
|
||||
resource_info_unref((resource_info_t*)info);
|
||||
if (remove) {
|
||||
array_remove(&(rm->resources), NULL, (void*)info, NULL);
|
||||
}
|
||||
|
2
src/base/timer.c
Normal file → Executable file
2
src/base/timer.c
Normal file → Executable file
@ -261,7 +261,7 @@ ret_t timer_queue(timer_func_t on_timer, void* ctx, uint32_t duration) {
|
||||
}
|
||||
|
||||
ret_t timer_set_on_destroy(uint32_t timer_id, tk_destroy_t on_destroy, void* on_destroy_ctx) {
|
||||
timer_info_t* item = timer_find(timer_id);
|
||||
timer_info_t* item = (timer_info_t*)timer_find(timer_id);
|
||||
return_value_if_fail(item != NULL, RET_BAD_PARAMS);
|
||||
|
||||
item->on_destroy = on_destroy;
|
||||
|
Loading…
Reference in New Issue
Block a user