mirror of
https://github.com/RubyMetric/chsrc
synced 2025-09-09 11:35:51 +08:00
修复编译错误
This commit is contained in:
parent
7d7e6e1702
commit
2156dbacad
@ -333,27 +333,12 @@ cli_print_target_features (Target_t *target, const char *input_target_name)
|
||||
void
|
||||
cli_print_target_maintain_info (Target_t *target, const char *input_target_name)
|
||||
{
|
||||
if (target->authors && target->authors_n > 0)
|
||||
{
|
||||
char *msg = ENGLISH ? "Recipe Original Authors: " : "食谱原始作者: ";
|
||||
printf ("%s", bdblue(msg));
|
||||
for (size_t i = 0; i < target->authors_n; i++)
|
||||
{
|
||||
if (i > 0) printf (", ");
|
||||
printf ("%s <%s>",
|
||||
target->authors[i].name ? target->authors[i].name : "Unknown",
|
||||
target->authors[i].email ? target->authors[i].email : "unknown@example.com");
|
||||
}
|
||||
printf ("\n");
|
||||
}
|
||||
|
||||
if (target->created_on)
|
||||
{
|
||||
char *msg = ENGLISH ? "Recipe Created On: " : "食谱创建时间: ";
|
||||
char *msg = ENGLISH ? "Recipe Created On: " : "食谱诞生时间: ";
|
||||
printf ("%s%s\n", bdblue(msg), target->created_on);
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
char *msg = ENGLISH ? "Current Chef: " : "当前主厨: ";
|
||||
if (target->chef)
|
||||
@ -371,7 +356,7 @@ cli_print_target_maintain_info (Target_t *target, const char *input_target_name)
|
||||
|
||||
|
||||
{
|
||||
char *msg = ENGLISH ? "Current Cooks: " : "当前副厨: ";
|
||||
char *msg = ENGLISH ? "Current Cooks: " : "主要厨师: ";
|
||||
if (target->cooks && target->cooks_n > 0)
|
||||
{
|
||||
printf ("%s", bdblue(msg));
|
||||
@ -379,8 +364,8 @@ cli_print_target_maintain_info (Target_t *target, const char *input_target_name)
|
||||
{
|
||||
if (i > 0) printf (", ");
|
||||
printf ("%s <%s>",
|
||||
target->cooks[i].name ? target->cooks[i].name : "Unknown",
|
||||
target->cooks[i].email ? target->cooks[i].email : "unknown@example.com");
|
||||
target->cooks[i]->name ? target->cooks[i]->name : "Unknown",
|
||||
target->cooks[i]->email ? target->cooks[i]->email : "unknown@example.com");
|
||||
}
|
||||
printf ("\n");
|
||||
}
|
||||
@ -400,8 +385,8 @@ cli_print_target_maintain_info (Target_t *target, const char *input_target_name)
|
||||
{
|
||||
if (i > 0) printf (", ");
|
||||
printf ("%s <%s>",
|
||||
target->contributors[i].name ? target->contributors[i].name : "Unknown",
|
||||
target->contributors[i].email ? target->contributors[i].email : "unknown@example.com");
|
||||
target->contributors[i]->name ? target->contributors[i]->name : "Unknown",
|
||||
target->contributors[i]->email ? target->contributors[i]->email : "unknown@example.com");
|
||||
}
|
||||
printf ("\n");
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ chef_verify_contributor (const char *id)
|
||||
if (!c)
|
||||
{
|
||||
char error[256];
|
||||
snprintf (error, sizeof (error), "贡献者不存在: %s", id);
|
||||
snprintf (error, sizeof (error), "贡献者不存在: %s, 是否写错?或者请在 chsrc-main.c 中登记该贡献者", id);
|
||||
chsrc_panic (error);
|
||||
}
|
||||
return c;
|
||||
|
@ -28,7 +28,7 @@ pl_go_prelude ()
|
||||
chef_set_last_updated (this, "2025-08-10");
|
||||
chef_set_sources_last_updated (this, "2025-07-12");
|
||||
|
||||
chef_set_chef (this, NULL, NULL);
|
||||
chef_set_chef (this, NULL);
|
||||
chef_set_cooks (this, 1, "@ccmywish");
|
||||
chef_set_contributors (this, 2, "@czyt", "@RuiYang");
|
||||
|
||||
|
@ -14,7 +14,7 @@ pl_nuget_prelude ()
|
||||
chef_set_last_updated (this, "2025-08-10");
|
||||
chef_set_sources_last_updated (this, "2024-04-18");
|
||||
|
||||
chef_set_chef (this, NULL, NULL);
|
||||
chef_set_chef (this, NULL);
|
||||
chef_set_cooks (this, 1, "@ccmywish");
|
||||
chef_set_contributors (this, 0);
|
||||
|
||||
|
@ -14,7 +14,7 @@ os_linuxlite_prelude ()
|
||||
chef_set_last_updated (this, "2025-08-10");
|
||||
chef_set_sources_last_updated (this, "2024-11-21");
|
||||
|
||||
chef_set_chef (this, NULL, NULL);
|
||||
chef_set_chef (this, NULL);
|
||||
chef_set_cooks (this, 1, "@ccmywish");
|
||||
chef_set_contributors (this, 1, "@Yangmoooo");
|
||||
|
||||
|
@ -18,7 +18,7 @@ wr_homebrew_prelude ()
|
||||
|
||||
chef_set_chef (this, NULL);
|
||||
chef_set_cooks (this, 1, "@ccmywish");
|
||||
chef_set_contributors (this, 1, "@Word2VecT";
|
||||
chef_set_contributors (this, 1, "@Word2VecT");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_allow_english(this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user