From 63b3832ce9d4245f2103073749b9919d505718d7 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Wed, 20 Aug 2025 18:19:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=E4=B8=BA=20`xy=5Fus?= =?UTF-8?q?e=5Futf8()`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/xy.h | 11 +++++------ src/framework/core.c | 8 ++++---- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/lib/xy.h b/lib/xy.h index 6f950ac..387eec7 100644 --- a/lib/xy.h +++ b/lib/xy.h @@ -2,7 +2,6 @@ * Copyright © 2023-2025 Aoran Zeng, Heng Guo * SPDX-License-Identifier: MIT * ------------------------------------------------------------- - * Lib Name : xy.h * Lib Authors : 曾奥然 * | 郭恒 <2085471348@qq.com> * Contributors : juzeon @@ -23,7 +22,7 @@ #ifndef XY_H #define XY_H -#define _XY_Version "v0.1.6.0-2025/08/18" +#define _XY_Version "v0.1.7.0-2025/08/20" #define _XY_Maintain_URL "https://github.com/RubyMetric/chsrc/blob/dev/lib/xy.h" #define _XY_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc/blob/dev/lib/xy.h" @@ -71,7 +70,7 @@ bool xy_enable_color = true; #define xy_os_devnull "nul" #include #include - #define xy_useutf8() SetConsoleOutputCP (65001) + #define xy_use_utf8() SetConsoleOutputCP (65001) #elif defined(__linux__) || defined(__linux) #define XY_On_Linux 1 @@ -80,7 +79,7 @@ bool xy_enable_color = true; #define xy_on_macos false #define xy_on_bsd false #define xy_os_devnull "/dev/null" - #define xy_useutf8() + #define xy_use_utf8() #elif defined(__APPLE__) #define XY_On_macOS 1 @@ -89,7 +88,7 @@ bool xy_enable_color = true; #define xy_on_macos true #define xy_on_bsd false #define xy_os_devnull "/dev/null" - #define xy_useutf8() + #define xy_use_utf8() #elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) #define XY_On_BSD 1 @@ -98,7 +97,7 @@ bool xy_enable_color = true; #define xy_on_macos false #define xy_on_bsd true #define xy_os_devnull "/dev/null" - #define xy_useutf8() + #define xy_use_utf8() #endif #define assert_str(a, b) assert (xy_streql ((a), (b))) diff --git a/src/framework/core.c b/src/framework/core.c index 70ae3b6..0443afb 100644 --- a/src/framework/core.c +++ b/src/framework/core.c @@ -2,14 +2,14 @@ * SPDX-License-Identifier: GPL-3.0-or-later * ------------------------------------------------------------- * File Name : core.c - * File Authors : Aoran Zeng - * | Heng Guo <2085471348@qq.com> + * File Authors : 曾奥然 + * | 郭恒 <2085471348@qq.com> * Contributors : Peng Gao * | Happy Game * | Yangmoooo * | * Created On : <2023-08-29> - * Last Modified : <2025-08-10> + * Last Modified : <2025-08-20> * * chsrc framework * ------------------------------------------------------------*/ @@ -212,7 +212,7 @@ chsrc_alert2 (const char *str) void chsrc_framework_prelude () { - xy_useutf8 (); + xy_use_utf8 (); ProgStatus.contributors = xy_map_new (); }