Skip to content

Commit 63b3832

Browse files
committed
重命名为 xy_use_utf8()
1 parent 81b9c29 commit 63b3832

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

lib/xy.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Copyright © 2023-2025 Aoran Zeng, Heng Guo
33
* SPDX-License-Identifier: MIT
44
* -------------------------------------------------------------
5-
* Lib Name : xy.h
65
* Lib Authors : 曾奥然 <[email protected]>
76
* | 郭恒 <[email protected]>
87
* Contributors : juzeon <[email protected]>
@@ -23,7 +22,7 @@
2322
#ifndef XY_H
2423
#define XY_H
2524

26-
#define _XY_Version "v0.1.6.0-2025/08/18"
25+
#define _XY_Version "v0.1.7.0-2025/08/20"
2726
#define _XY_Maintain_URL "https://github.com/RubyMetric/chsrc/blob/dev/lib/xy.h"
2827
#define _XY_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc/blob/dev/lib/xy.h"
2928

@@ -71,7 +70,7 @@ bool xy_enable_color = true;
7170
#define xy_os_devnull "nul"
7271
#include <windows.h>
7372
#include <shlobj.h>
74-
#define xy_useutf8() SetConsoleOutputCP (65001)
73+
#define xy_use_utf8() SetConsoleOutputCP (65001)
7574

7675
#elif defined(__linux__) || defined(__linux)
7776
#define XY_On_Linux 1
@@ -80,7 +79,7 @@ bool xy_enable_color = true;
8079
#define xy_on_macos false
8180
#define xy_on_bsd false
8281
#define xy_os_devnull "/dev/null"
83-
#define xy_useutf8()
82+
#define xy_use_utf8()
8483

8584
#elif defined(__APPLE__)
8685
#define XY_On_macOS 1
@@ -89,7 +88,7 @@ bool xy_enable_color = true;
8988
#define xy_on_macos true
9089
#define xy_on_bsd false
9190
#define xy_os_devnull "/dev/null"
92-
#define xy_useutf8()
91+
#define xy_use_utf8()
9392

9493
#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
9594
#define XY_On_BSD 1
@@ -98,7 +97,7 @@ bool xy_enable_color = true;
9897
#define xy_on_macos false
9998
#define xy_on_bsd true
10099
#define xy_os_devnull "/dev/null"
101-
#define xy_useutf8()
100+
#define xy_use_utf8()
102101
#endif
103102

104103
#define assert_str(a, b) assert (xy_streql ((a), (b)))

src/framework/core.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
* SPDX-License-Identifier: GPL-3.0-or-later
33
* -------------------------------------------------------------
44
* File Name : core.c
5-
* File Authors : Aoran Zeng <[email protected]>
6-
* | Heng Guo <[email protected]>
5+
* File Authors : 曾奥然 <[email protected]>
6+
* | 郭恒 <[email protected]>
77
* Contributors : Peng Gao <[email protected]>
88
* | Happy Game <[email protected]>
99
* | Yangmoooo <[email protected]>
1010
* |
1111
* Created On : <2023-08-29>
12-
* Last Modified : <2025-08-10>
12+
* Last Modified : <2025-08-20>
1313
*
1414
* chsrc framework
1515
* ------------------------------------------------------------*/
@@ -212,7 +212,7 @@ chsrc_alert2 (const char *str)
212212
void
213213
chsrc_framework_prelude ()
214214
{
215-
xy_useutf8 ();
215+
xy_use_utf8 ();
216216

217217
ProgStatus.contributors = xy_map_new ();
218218
}

0 commit comments

Comments
 (0)