Rename struct

This commit is contained in:
Aoran Zeng
2024-11-22 07:07:29 +08:00
parent 743380290e
commit 92d5407269
30 changed files with 85 additions and 85 deletions

View File

@@ -97,10 +97,10 @@ pl_dart_flutter_resetsrc (char *option)
/**
* chsrc ls flutter
*/
FeatInfo
Feature_t
pl_dart_flutter_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;

View File

@@ -90,10 +90,10 @@ pl_dart_resetsrc (char *option)
}
FeatInfo
Feature_t
pl_dart_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;

View File

@@ -90,10 +90,10 @@ pl_go_resetsrc (char *option)
/**
* chsrc ls go
*/
FeatInfo
Feature_t
pl_go_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;

View File

@@ -53,10 +53,10 @@ pl_julia_setsrc (char *option)
}
FeatInfo
Feature_t
pl_julia_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = false;

View File

@@ -62,10 +62,10 @@ pl_nodejs_bun_resetsrc (char *option)
/**
* chsrc ls bun
*/
FeatInfo
Feature_t
pl_nodejs_bun_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
@@ -80,4 +80,4 @@ pl_nodejs_bun_feat (char *option)
}
// def_target_gsrf(pl_nodejs_bun);
TargetInfo pl_nodejs_bun_target = {def_target_inner_gsrf(pl_nodejs_bun),def_target_sourcesn(pl_nodejs)};
Target_t pl_nodejs_bun_target = {def_target_inner_gsrf(pl_nodejs_bun),def_target_sourcesn(pl_nodejs)};

View File

@@ -111,10 +111,10 @@ pl_nodejs_resetsrc (char *option)
/**
* chsrc ls nodejs
*/
FeatInfo
Feature_t
pl_nodejs_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;

View File

@@ -89,10 +89,10 @@ pl_nodejs_yarn_resetsrc (char *option)
/**
* chsrc ls yarn
*/
FeatInfo
Feature_t
pl_nodejs_yarn_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
@@ -107,4 +107,4 @@ pl_nodejs_yarn_feat (char *option)
}
// def_target_gsrf(pl_nodejs_yarn);
TargetInfo pl_nodejs_yarn_target = {def_target_inner_gsrf(pl_nodejs_yarn),def_target_sourcesn(pl_nodejs)};
Target_t pl_nodejs_yarn_target = {def_target_inner_gsrf(pl_nodejs_yarn),def_target_sourcesn(pl_nodejs)};

View File

@@ -58,10 +58,10 @@ pl_nodejs_npm_resetsrc (char *option)
/**
* chsrc ls npm
*/
FeatInfo
Feature_t
pl_nodejs_npm_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
@@ -76,4 +76,4 @@ pl_nodejs_npm_feat (char *option)
}
// def_target_gsrf(pl_nodejs_npm);
TargetInfo pl_nodejs_npm_target = {def_target_inner_gsrf(pl_nodejs_npm),def_target_sourcesn(pl_nodejs)};
Target_t pl_nodejs_npm_target = {def_target_inner_gsrf(pl_nodejs_npm),def_target_sourcesn(pl_nodejs)};

View File

@@ -61,10 +61,10 @@ pl_nodejs_nvm_resetsrc (char *option)
/**
* chsrc ls nvm
*/
FeatInfo
Feature_t
pl_nodejs_nvm_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = false;
@@ -79,4 +79,4 @@ pl_nodejs_nvm_feat (char *option)
}
// def_target_gsrf(pl_nodejs_nvm);
TargetInfo pl_nodejs_nvm_target = {def_target_inner_gsrf(pl_nodejs_nvm),def_target_sourcesn(pl_nodejs_binary_release)};
Target_t pl_nodejs_nvm_target = {def_target_inner_gsrf(pl_nodejs_nvm),def_target_sourcesn(pl_nodejs_binary_release)};

View File

@@ -59,10 +59,10 @@ pl_nodejs_pnpm_resetsrc (char *option)
/**
* chsrc ls pnpm
*/
FeatInfo
Feature_t
pl_nodejs_pnpm_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
@@ -78,4 +78,4 @@ pl_nodejs_pnpm_feat (char *option)
// def_target_gsrf(pl_nodejs_pnpm);
TargetInfo pl_nodejs_pnpm_target = {def_target_inner_gsrf(pl_nodejs_pnpm),def_target_sourcesn(pl_nodejs)};
Target_t pl_nodejs_pnpm_target = {def_target_inner_gsrf(pl_nodejs_pnpm),def_target_sourcesn(pl_nodejs)};

View File

@@ -61,10 +61,10 @@ pl_php_setsrc (char *option)
}
FeatInfo
Feature_t
pl_php_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = false;

View File

@@ -60,10 +60,10 @@ pl_python_pdm_resetsrc (char *option)
/**
* chsrc ls pdm
*/
FeatInfo
Feature_t
pl_python_pdm_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
@@ -80,4 +80,4 @@ pl_python_pdm_feat (char *option)
}
// def_target_gsrf(pl_python_pdm);
TargetInfo pl_python_pdm_target = {def_target_inner_gsrf(pl_python_pdm),def_target_sourcesn(pl_python)};
Target_t pl_python_pdm_target = {def_target_inner_gsrf(pl_python_pdm),def_target_sourcesn(pl_python)};

View File

@@ -58,10 +58,10 @@ pl_python_poetry_resetsrc (char *option)
/**
* chsrc ls poetry
*/
FeatInfo
Feature_t
pl_python_poetry_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
@@ -76,4 +76,4 @@ pl_python_poetry_feat (char *option)
}
// def_target_gsrf(pl_python_poetry);
TargetInfo pl_python_poetry_target = {def_target_inner_gsrf(pl_python_poetry),def_target_sourcesn(pl_python)};
Target_t pl_python_poetry_target = {def_target_inner_gsrf(pl_python_poetry),def_target_sourcesn(pl_python)};

View File

@@ -81,10 +81,10 @@ pl_python_resetsrc (char *option)
}
FeatInfo
Feature_t
pl_python_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;

View File

@@ -70,10 +70,10 @@ pl_python_pip_resetsrc (char *option)
/**
* chsrc ls pip
*/
FeatInfo
Feature_t
pl_python_pip_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
@@ -89,4 +89,4 @@ pl_python_pip_feat (char *option)
}
// def_target_gsrf(pl_python_pip);
TargetInfo pl_python_pip_target = {def_target_inner_gsrf(pl_python_pip),def_target_sourcesn(pl_python)};
Target_t pl_python_pip_target = {def_target_inner_gsrf(pl_python_pip),def_target_sourcesn(pl_python)};

View File

@@ -97,10 +97,10 @@ pl_ruby_resetsrc (char *option)
}
FeatInfo
Feature_t
pl_ruby_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;

View File

@@ -70,10 +70,10 @@ pl_rust_cargo_resetsrc (char *option)
}
FeatInfo
Feature_t
pl_rust_cargo_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;

View File

@@ -98,10 +98,10 @@ pl_rust_rustup_resetsrc (char *option)
/**
* chsrc ls rustup
*/
FeatInfo
Feature_t
pl_rust_rustup_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = false;

View File

@@ -61,10 +61,10 @@ os_armbian_setsrc (char *option)
}
FeatInfo
Feature_t
os_armbian_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = false;

View File

@@ -109,10 +109,10 @@ os_debian_setsrc (char *option)
}
FeatInfo
Feature_t
os_debian_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = false;

View File

@@ -129,10 +129,10 @@ os_ubuntu_resetsrc (char *option)
}
FeatInfo
Feature_t
os_ubuntu_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;

View File

@@ -85,10 +85,10 @@ os_fedora_resetsrc (char *option)
}
FeatInfo
Feature_t
os_fedora_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = false;
f.can_reset = true;

View File

@@ -129,10 +129,10 @@ os_archlinuxcn_setsrc (char *option)
#undef OS_Pacman_MirrorList
FeatInfo
Feature_t
os_arch_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = false;
@@ -146,10 +146,10 @@ os_arch_feat (char *option)
}
FeatInfo
Feature_t
os_archlinuxcn_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = false;

View File

@@ -23,4 +23,4 @@ os_manjaro_setsrc (char *option)
chsrc_conclude (NULL, SetsrcType_Auto);
}
TargetInfo os_manjaro_target = {NULL, os_manjaro_setsrc, NULL, NULL, 0};
Target_t os_manjaro_target = {NULL, os_manjaro_setsrc, NULL, NULL, 0};

View File

@@ -105,10 +105,10 @@ void
*
* 用于 chsrc ls <target>
*/
FeatInfo
Feature_t
<category>_<target>_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = false;

View File

@@ -155,10 +155,10 @@ wr_dockerhub_setsrc (char *option)
}
FeatInfo
Feature_t
wr_dockerhub_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = false;

View File

@@ -86,10 +86,10 @@ wr_homebrew_setsrc (char *option)
}
FeatInfo
Feature_t
wr_homebrew_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = false;

View File

@@ -45,10 +45,10 @@ wr_winget_resetsrc (char *option)
}
FeatInfo
Feature_t
wr_winget_feat (char *option)
{
FeatInfo f = {0};
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;