使用 chef_prep_this_combo_dish()

This commit is contained in:
Aoran Zeng committed 2026-08-22 21:13:56 +08:00
1 parent 2d8fa4b50f
commit 0ee4bde9e3
4 files changed
+8 -4

No files matched your search

+3 -1
View File
@@ -5,7 +5,7 @@
* File Authors : @ccmywish
* Contributors : @BingChunMoLi
* Created On : <2025-08-09>
* Last Modified : <2026-08-20>
* Last Modified : <2026-08-22>
*
* 本文件的函数能够帮助 chefs 为一个 dish 定义 recipe
* ------------------------------------------------------------*/
@@ -30,6 +30,8 @@
/* 简化 "源dish" 的编写 */
#define chef_prep_this_sources_dish(t) Dish_t *this = &t##_dish; this->prepared = true; chef_allow_NOOP(t);
#define chef_prep_this_combo_dish(t) Dish_t *this = &t##_dish; this->prepared = true; chef_allow_NOOP(t);
/* 内部 "源dish" 的 preparefn 未通过 menu.c 的 add() 注册, 手动挂载 */
#define chef_set_preparefn_for_sources_dish(t) t##_dish.preparefn = t##_prepare;
+1 -1
View File
@@ -7,7 +7,7 @@ def_combo_dish(pl_js_group, "js/javascript/node/nodejs");
void
pl_js_group_prepare (void)
{
chef_prep_this_dish (pl_js_group, NOOP);
chef_prep_this_combo_dish (pl_js_group);
chef_set_recipe_created_on (this, "2023-09-09");
chef_set_recipe_last_updated (this, "2026-08-19");
+3 -1
View File
@@ -7,10 +7,12 @@ def_combo_dish(pl_py_group, "py/python");
void
pl_py_group_prepare (void)
{
chef_prep_this_dish (pl_py_group, NOOP);
chef_prep_this_combo_dish (pl_py_group);
chef_set_recipe_created_on (this, "2023-09-03");
chef_set_recipe_last_updated (this, "2026-08-13");
chef_set_sub_dishes (this, 4, &pl_pip_dish, &pl_pdm_dish, &pl_poetry_dish, &pl_uv_dish);
chef_set_all_sub_dishes_use_same_source (this, true);
}
+1 -1
View File
@@ -7,7 +7,7 @@ def_combo_dish(pl_uv, "uv");
void
pl_uv_prepare (void)
{
chef_prep_this_dish (pl_uv, NOOP);
chef_prep_this_combo_dish (pl_uv);
chef_set_recipe_created_on (this, "2026-08-12");
chef_set_recipe_last_updated (this, "2026-08-20");