-
-
Notifications
You must be signed in to change notification settings - Fork 267
增加部分关键函数与操作的注释 #267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
增加部分关键函数与操作的注释 #267
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,28 +59,28 @@ void | |
| <category>_<target>_prelude (void) | ||
| { | ||
| use_this(<category>_<target>); | ||
| chef_allow_gsr(<category>_<target>); | ||
| // chef_allow_s(<category>_<target>); | ||
| chef_allow_gsr(<category>_<target>); // 代表支持 Get Set Reset 三种操作 | ||
| // chef_allow_s(<category>_<target>); // 以此类推 | ||
| // chef_allow_gs(<category>_<target>); | ||
| // chef_allow_sr(<category>_<target>); | ||
|
|
||
| chef_set_created_on (this, "2024-08-09"); | ||
| chef_set_last_updated (this, "2025-08-12"); | ||
| chef_set_sources_last_updated (this, "2025-08-11"); | ||
| chef_set_created_on (this, "2024-08-09"); // 文件创建日期 | ||
| chef_set_last_updated (this, "2025-08-12"); // 文件最后一次更新日期 | ||
| chef_set_sources_last_updated (this, "2025-08-11"); // 镜像站点最后一次更新日期 | ||
|
|
||
| chef_set_authors (this, 1, "Aoran Zeng", "[email protected]"); | ||
| chef_set_authors (this, 1, "Aoran Zeng", "[email protected]"); // 作者 | ||
| chef_set_chef (this, NULL, NULL); | ||
| chef_set_cooks (this, 0); | ||
| chef_set_contributors (this, 1, | ||
| chef_set_cooks (this, 0); // 想一直为它贡献和更新?将自己加在这里! | ||
| chef_set_contributors (this, 1, // 为它做了贡献?将自己的信息加在这里! | ||
| "Nil Null", "[email protected]"); | ||
|
|
||
|
|
||
| chef_allow_local_mode (this, PartiallyCan, "具体说明是否支持项目级换源...", "Tell users the local mode support"); | ||
|
|
||
| // chef_allow_english(this); | ||
| // chef_allow_english(this); // 项目是否支持英文 | ||
| chef_forbid_english(this); | ||
|
|
||
| // chef_allow_user_define(this); | ||
| // chef_allow_user_define(this); // 是否支持用户自定义镜像源 | ||
| chef_forbid_user_define(this); | ||
|
|
||
| chef_set_note ("中文备注说明...", "English note..."); | ||
|
|
@@ -141,3 +141,7 @@ void | |
| /* 往往统一在 _setsrc() 中实现,直接调用即可 */ | ||
| // <category>_<target>_setsrc (option); | ||
| } | ||
|
|
||
|
|
||
| // 最后,请将自己的文件加入到 menu.c 和 chsrc-main.c 对应的位置 | ||
| // 形式可以参考其附近的其他食谱 | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.