mirror of
https://github.com/RubyMetric/chsrc
synced 2026-02-27 17:41:18 +08:00
使用 chsrc_framework_prelude()
This commit is contained in:
@@ -122,6 +122,8 @@ typedef enum ChgType_t
|
||||
/* Global Program Status */
|
||||
struct
|
||||
{
|
||||
XyMap_t *contributors; /* 所有贡献者 */
|
||||
|
||||
int leader_selected_index; /* leader target 选中的索引 */
|
||||
ChgType_t chgtype; /* 换源实现的类型 */
|
||||
|
||||
@@ -130,6 +132,7 @@ struct
|
||||
}
|
||||
ProgStatus =
|
||||
{
|
||||
.contributors = NULL,
|
||||
.leader_selected_index = -1,
|
||||
.chgtype = ChgType_Auto,
|
||||
.chsrc_run_faas = false
|
||||
@@ -205,6 +208,17 @@ chsrc_alert2 (const char *str)
|
||||
}
|
||||
|
||||
|
||||
|
||||
void
|
||||
chsrc_framework_prelude ()
|
||||
{
|
||||
xy_useutf8 ();
|
||||
|
||||
ProgStatus.contributors = xy_map_new ();
|
||||
}
|
||||
|
||||
|
||||
|
||||
void
|
||||
chsrc_log_write (const char *filename)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user