Skip to content

Commit 2156dba

Browse files
committed
修复编译错误
1 parent 7d7e6e1 commit 2156dba

File tree

6 files changed

+11
-26
lines changed

6 files changed

+11
-26
lines changed

src/chsrc-main.c

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -333,27 +333,12 @@ cli_print_target_features (Target_t *target, const char *input_target_name)
333333
void
334334
cli_print_target_maintain_info (Target_t *target, const char *input_target_name)
335335
{
336-
if (target->authors && target->authors_n > 0)
337-
{
338-
char *msg = ENGLISH ? "Recipe Original Authors: " : "食谱原始作者: ";
339-
printf ("%s", bdblue(msg));
340-
for (size_t i = 0; i < target->authors_n; i++)
341-
{
342-
if (i > 0) printf (", ");
343-
printf ("%s <%s>",
344-
target->authors[i].name ? target->authors[i].name : "Unknown",
345-
target->authors[i].email ? target->authors[i].email : "[email protected]");
346-
}
347-
printf ("\n");
348-
}
349-
350336
if (target->created_on)
351337
{
352-
char *msg = ENGLISH ? "Recipe Created On: " : "食谱创建时间: ";
338+
char *msg = ENGLISH ? "Recipe Created On: " : "食谱诞生时间: ";
353339
printf ("%s%s\n", bdblue(msg), target->created_on);
354340
}
355341

356-
357342
{
358343
char *msg = ENGLISH ? "Current Chef: " : "当前主厨: ";
359344
if (target->chef)
@@ -371,16 +356,16 @@ cli_print_target_maintain_info (Target_t *target, const char *input_target_name)
371356

372357

373358
{
374-
char *msg = ENGLISH ? "Current Cooks: " : "当前副厨: ";
359+
char *msg = ENGLISH ? "Current Cooks: " : "主要厨师: ";
375360
if (target->cooks && target->cooks_n > 0)
376361
{
377362
printf ("%s", bdblue(msg));
378363
for (size_t i = 0; i < target->cooks_n; i++)
379364
{
380365
if (i > 0) printf (", ");
381366
printf ("%s <%s>",
382-
target->cooks[i].name ? target->cooks[i].name : "Unknown",
383-
target->cooks[i].email ? target->cooks[i].email : "[email protected]");
367+
target->cooks[i]->name ? target->cooks[i]->name : "Unknown",
368+
target->cooks[i]->email ? target->cooks[i]->email : "[email protected]");
384369
}
385370
printf ("\n");
386371
}
@@ -400,8 +385,8 @@ cli_print_target_maintain_info (Target_t *target, const char *input_target_name)
400385
{
401386
if (i > 0) printf (", ");
402387
printf ("%s <%s>",
403-
target->contributors[i].name ? target->contributors[i].name : "Unknown",
404-
target->contributors[i].email ? target->contributors[i].email : "[email protected]");
388+
target->contributors[i]->name ? target->contributors[i]->name : "Unknown",
389+
target->contributors[i]->email ? target->contributors[i]->email : "[email protected]");
405390
}
406391
printf ("\n");
407392
}

src/framework/chef.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ chef_verify_contributor (const char *id)
191191
if (!c)
192192
{
193193
char error[256];
194-
snprintf (error, sizeof (error), "贡献者不存在: %s", id);
194+
snprintf (error, sizeof (error), "贡献者不存在: %s, 是否写错?或者请在 chsrc-main.c 中登记该贡献者", id);
195195
chsrc_panic (error);
196196
}
197197
return c;

src/recipe/lang/Go.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pl_go_prelude ()
2828
chef_set_last_updated (this, "2025-08-10");
2929
chef_set_sources_last_updated (this, "2025-07-12");
3030

31-
chef_set_chef (this, NULL, NULL);
31+
chef_set_chef (this, NULL);
3232
chef_set_cooks (this, 1, "@ccmywish");
3333
chef_set_contributors (this, 2, "@czyt", "@RuiYang");
3434

src/recipe/lang/NuGet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pl_nuget_prelude ()
1414
chef_set_last_updated (this, "2025-08-10");
1515
chef_set_sources_last_updated (this, "2024-04-18");
1616

17-
chef_set_chef (this, NULL, NULL);
17+
chef_set_chef (this, NULL);
1818
chef_set_cooks (this, 1, "@ccmywish");
1919
chef_set_contributors (this, 0);
2020

src/recipe/os/APT/Linux-Lite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ os_linuxlite_prelude ()
1414
chef_set_last_updated (this, "2025-08-10");
1515
chef_set_sources_last_updated (this, "2024-11-21");
1616

17-
chef_set_chef (this, NULL, NULL);
17+
chef_set_chef (this, NULL);
1818
chef_set_cooks (this, 1, "@ccmywish");
1919
chef_set_contributors (this, 1, "@Yangmoooo");
2020

src/recipe/ware/Homebrew/Homebrew.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ wr_homebrew_prelude ()
1818

1919
chef_set_chef (this, NULL);
2020
chef_set_cooks (this, 1, "@ccmywish");
21-
chef_set_contributors (this, 1, "@Word2VecT";
21+
chef_set_contributors (this, 1, "@Word2VecT");
2222

2323
chef_allow_local_mode (this, CanNot, NULL, NULL);
2424
chef_allow_english(this);

0 commit comments

Comments
 (0)