Skip to content

Commit 8e1f6a3

Browse files
committed
Bump xy version to v0.2.0
1 parent 55865d6 commit 8e1f6a3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/xy.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#ifndef XY_H
2424
#define XY_H
2525

26-
#define _XY_Version "v0.1.7.0-2025/08/22"
26+
#define _XY_Version "v0.2.0.0-2025/08/27"
2727
#define _XY_Maintain_URL "https://github.com/RubyMetric/chsrc/blob/dev/lib/xy.h"
2828
#define _XY_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc/blob/dev/lib/xy.h"
2929

@@ -64,6 +64,8 @@ struct
6464
{
6565
bool enable_color;
6666

67+
bool inited;
68+
6769
bool on_windows;
6870
bool on_linux;
6971
bool on_macos;
@@ -77,6 +79,9 @@ xy =
7779
.enable_color = true,
7880

7981
/* 由 xy_init() 赋值 */
82+
83+
.inited = false,
84+
8085
.on_windows = false,
8186
.on_linux = false,
8287
.on_macos = false,
@@ -1220,6 +1225,8 @@ xy_init ()
12201225
xy.os_devnull = "/dev/null";
12211226

12221227
xy_use_utf8 ();
1228+
1229+
xy.inited = true;
12231230
}
12241231

12251232

0 commit comments

Comments
 (0)