From 389e65a5f03397a3e9d1af18ac0c45f136b96bc8 Mon Sep 17 00:00:00 2001 From: xianjimli Date: Fri, 31 Jul 2020 11:40:18 +0800 Subject: [PATCH] fix utf8-bom --- docs/changes.md | 3 ++- src/base/bidi.h | 2 +- src/base/canvas_offline.c | 2 +- src/base/canvas_offline.h | 2 +- src/tkc/emitter.c | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/changes.md b/docs/changes.md index 55b2e287a..4d90bbb27 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -2,7 +2,8 @@ * 2020/07/31 * 增加 EVT_RESET - + * 部分文件增加 UTF8-BOM(感谢陈谭提供补丁)。 + * 2020/07/30 * 如果新窗口的 sensitive 属性为 FALSE,不切换窗口焦点。 * 完善 text edit, 修复 mledit 在非缺省字体时的问题(感谢俊杰提供补丁)。 diff --git a/src/base/bidi.h b/src/base/bidi.h index ad09a505a..fae3f31f0 100644 --- a/src/base/bidi.h +++ b/src/base/bidi.h @@ -1,4 +1,4 @@ -/** +/** * File: bidi.h * Author: AWTK Develop Team * Brief: Unicode Bidirectional Algorithm. diff --git a/src/base/canvas_offline.c b/src/base/canvas_offline.c index 458d79f69..1504a78b8 100644 --- a/src/base/canvas_offline.c +++ b/src/base/canvas_offline.c @@ -1,4 +1,4 @@ -/** +/** * File: canvas_offline.c * Author: AWTK Develop Team * Brief: offline canvas. diff --git a/src/base/canvas_offline.h b/src/base/canvas_offline.h index 60cc7f351..85f77c7e0 100644 --- a/src/base/canvas_offline.h +++ b/src/base/canvas_offline.h @@ -1,4 +1,4 @@ -/** +/** * File: canvas_offline.h * Author: AWTK Develop Team * Brief: offline canvas. diff --git a/src/tkc/emitter.c b/src/tkc/emitter.c index 3c8ca5bcc..0a98fcd12 100644 --- a/src/tkc/emitter.c +++ b/src/tkc/emitter.c @@ -176,7 +176,7 @@ uint32_t emitter_on_with_tag(emitter_t* emitter, uint32_t etype, event_func_t ha } bool_t emitter_exist(emitter_t* emitter, uint32_t etype, event_func_t handler, void* ctx) { - return_value_if_fail(emitter != NULL, NULL); + return_value_if_fail(emitter != NULL, FALSE); if (emitter->items) { emitter_item_t* iter = emitter->items;