重命名 contributors 为 sauciers

This commit is contained in:
Aoran Zeng
2025-08-22 14:34:58 +08:00
parent 8130f11cd1
commit 6600099283
3 changed files with 18 additions and 21 deletions

View File

@@ -261,21 +261,21 @@ chef_set_contributors (Target_t *target, uint32_t count, ...)
if (count == 0)
{
target->contributors = NULL;
target->contributors_n = 0;
target->sauciers = NULL;
target->sauciers_n = 0;
return;
}
va_list args;
va_start (args, count);
target->contributors = xy_malloc0 (count * sizeof (Contributor_t*));
target->contributors_n = count;
target->sauciers = xy_malloc0 (count * sizeof (Contributor_t*));
target->sauciers_n = count;
for (uint32_t i = 0; i < count; i++)
{
char *id = va_arg (args, char*);
target->contributors[i] = chef_verify_contributor (id);
target->sauciers[i] = chef_verify_contributor (id);
}
}

View File

@@ -2,12 +2,12 @@
* SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Name : struct.h
* File Authors : Aoran Zeng <ccmywish@qq.com>
* | Heng Guo <2085471348@qq.com>
* File Authors : 曾奥然 <ccmywish@qq.com>
* | 郭恒 <2085471348@qq.com>
* Contributors : Shengwei Chen <414685209@qq.com>
* |
* Created On : <2023-08-29>
* Last Modified : <2025-08-20>
* Last Modified : <2025-08-22>
*
* chsrc struct
* ------------------------------------------------------------*/
@@ -151,12 +151,11 @@ typedef struct Target_t
char *last_updated;
char *sources_last_updated;
Contributor_t *chef; /* 该 recipe 的负责人 */
Contributor_t **cooks; /* 该 recipe 的核心作者 */
Contributor_t *chef; /* 该 recipe *当前*的总负责人 (可以任职也可以休职) */
Contributor_t **cooks; /* 该 recipe 的主要作者 */
size_t cooks_n;
Contributor_t **contributors; /* 该 recipe 的所有贡献者(除核心作者外的其他人) */
size_t contributors_n;
Contributor_t **sauciers; /* 该 recipe 的次要贡献者 (除主要作者外的其他人) */
size_t sauciers_n;
}
Target_t;