From e235b6dd1715456577b0b0d7707dec56a1f31bd8 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Sun, 10 Aug 2025 10:15:26 +0800 Subject: [PATCH] Use allow_ --- src/framework/chef.h | 6 +++--- src/recipe/os/APT/Armbian.c | 6 +++--- src/recipe/os/APT/Debian.c | 6 +++--- src/recipe/os/APT/Kali-Linux.c | 6 +++--- src/recipe/os/APT/Linux-Lite.c | 6 +++--- src/recipe/os/APT/Linux-Mint.c | 6 +++--- src/recipe/os/APT/ROS.c | 6 +++--- src/recipe/os/APT/Raspberry-Pi-OS.c | 6 +++--- src/recipe/os/APT/Termux.c | 6 +++--- src/recipe/os/APT/Trisquel.c | 6 +++--- src/recipe/os/APT/Ubuntu.c | 6 +++--- src/recipe/os/APT/deepin.c | 6 +++--- src/recipe/os/APT/openKylin.c | 6 +++--- src/recipe/os/Alpine-Linux.c | 6 +++--- src/recipe/os/BSD/FreeBSD.c | 2 +- src/recipe/os/BSD/NetBSD.c | 4 ++-- src/recipe/os/BSD/OpenBSD.c | 4 ++-- src/recipe/os/Gentoo-Linux.c | 6 +++--- src/recipe/os/OpenWrt.c | 6 +++--- src/recipe/os/Solus.c | 6 +++--- src/recipe/os/Void-Linux.c | 6 +++--- src/recipe/os/YUM/AlmaLinux.c | 2 +- src/recipe/os/YUM/Anolis-OS.c | 2 +- src/recipe/os/YUM/Fedora-Linux.c | 4 ++-- src/recipe/os/YUM/Rocky-Linux.c | 4 ++-- src/recipe/os/YUM/openEuler.c | 6 +++--- src/recipe/os/openSUSE.c | 6 +++--- src/recipe/os/pacman/Arch-Linux.c | 8 ++++---- src/recipe/os/pacman/MSYS2.c | 2 +- src/recipe/os/pacman/Manjaro-Linux.c | 2 +- src/recipe/recipe-template.c | 6 +++--- src/recipe/ware/Anaconda/Anaconda.c | 6 +++--- src/recipe/ware/CocoaPods.c | 6 +++--- src/recipe/ware/Docker-Hub/Docker-Hub.c | 6 +++--- src/recipe/ware/Emacs.c | 6 +++--- src/recipe/ware/Flathub.c | 6 +++--- src/recipe/ware/Guix.c | 6 +++--- src/recipe/ware/Homebrew/Homebrew.c | 6 +++--- src/recipe/ware/Nix.c | 6 +++--- src/recipe/ware/TeX-Live.c | 6 +++--- src/recipe/ware/WinGet.c | 6 +++--- 41 files changed, 110 insertions(+), 110 deletions(-) diff --git a/src/framework/chef.h b/src/framework/chef.h index 34f9062..ef381e5 100644 --- a/src/framework/chef.h +++ b/src/framework/chef.h @@ -46,9 +46,9 @@ chef_ensure_trailing_slash (char *str) } -#define chef_has_get() this->getfn = t##_getsrc; -#define chef_has_set() this->setfn = t##_setsrc; -#define chef_has_reset() this->resetfn = t##_resetsrc; +#define chef_allow_get() this->getfn = t##_getsrc; +#define chef_allow_set() this->setfn = t##_setsrc; +#define chef_allow_reset() this->resetfn = t##_resetsrc; void diff --git a/src/recipe/os/APT/Armbian.c b/src/recipe/os/APT/Armbian.c index 55e4ecb..f237332 100644 --- a/src/recipe/os/APT/Armbian.c +++ b/src/recipe/os/APT/Armbian.c @@ -20,9 +20,9 @@ os_armbian_prelude () "Aoran Zeng", "ccmywish@qq.com", "Yangmoooo", "yangmoooo@outlook.com"); - chef_has_getfn(); - chef_has_setfn(); - chef_has_resetsrc(); + chef_allow_get(); + chef_allow_set(); + chef_allow_reset(); def_upstream("http://apt.armbian.com"); def_sources_begin(os_armbian) diff --git a/src/recipe/os/APT/Debian.c b/src/recipe/os/APT/Debian.c index 7434aff..ce25c90 100644 --- a/src/recipe/os/APT/Debian.c +++ b/src/recipe/os/APT/Debian.c @@ -24,9 +24,9 @@ os_debian_prelude () "Yangmoooo", "yangmoooo@outlook.com", "GitHub Copilot", "https://github.com/copilot"); - chef_has_getfn(); - chef_has_setfn(); - chef_has_resetsrc(); + chef_allow_get(); + chef_allow_set(); + chef_allow_reset(); def_upstream("http://deb.debian.org/debian"); def_sources_begin(os_debian) diff --git a/src/recipe/os/APT/Kali-Linux.c b/src/recipe/os/APT/Kali-Linux.c index 6a40c70..f2379b1 100644 --- a/src/recipe/os/APT/Kali-Linux.c +++ b/src/recipe/os/APT/Kali-Linux.c @@ -20,9 +20,9 @@ os_kali_prelude () "Yangmoooo", "yangmoooo@outlook.com", "Happy Game", "happygame1024@gmail.com"); - chef_has_getfn(); - chef_has_setfn(); - chef_has_resetsrc(); + chef_allow_get(); + chef_allow_set(); + chef_allow_reset(); def_upstream("http://http.kali.org/kali"); def_sources_begin(os_kali) diff --git a/src/recipe/os/APT/Linux-Lite.c b/src/recipe/os/APT/Linux-Lite.c index b7e4609..33e3dd1 100644 --- a/src/recipe/os/APT/Linux-Lite.c +++ b/src/recipe/os/APT/Linux-Lite.c @@ -19,9 +19,9 @@ os_linuxlite_prelude () chef_set_contributors (this, 1, "Yangmoooo", "yangmoooo@outlook.com"); - chef_has_getfn(); - chef_has_setfn(); - chef_has_resetsrc(); + chef_allow_get(); + chef_allow_set(); + chef_allow_reset(); def_upstream("http://repo.linuxliteos.com/linuxlite/"); def_sources_begin(os_linuxlite) diff --git a/src/recipe/os/APT/Linux-Mint.c b/src/recipe/os/APT/Linux-Mint.c index 6453300..c47a84a 100644 --- a/src/recipe/os/APT/Linux-Mint.c +++ b/src/recipe/os/APT/Linux-Mint.c @@ -19,9 +19,9 @@ os_linuxmint_prelude () chef_set_contributors (this, 1, "Happy Game", "happygame1024@gmail.com"); - chef_has_getfn(); - chef_has_setfn(); - chef_has_resetsrc(); + chef_allow_get(); + chef_allow_set(); + chef_allow_reset(); /* @note 实际上镜像站里的内容和Ubuntu的不太一样 */ def_upstream("http://packages.linuxmint.com"); diff --git a/src/recipe/os/APT/ROS.c b/src/recipe/os/APT/ROS.c index 7b4e186..0aa1305 100644 --- a/src/recipe/os/APT/ROS.c +++ b/src/recipe/os/APT/ROS.c @@ -20,9 +20,9 @@ os_ros_prelude () "Aoran Zeng", "ccmywish@qq.com", "zouri", "guoshuaisun@outlook.com"); - chef_has_get(); - chef_has_set(); - chef_has_reset(); + chef_allow_get(); + chef_allow_set(); + chef_allow_reset(); this.note = "该换源方案中,URL存在拼凑,因此不能手动使用某URL来换源"; diff --git a/src/recipe/os/APT/Raspberry-Pi-OS.c b/src/recipe/os/APT/Raspberry-Pi-OS.c index b23e770..9984cff 100644 --- a/src/recipe/os/APT/Raspberry-Pi-OS.c +++ b/src/recipe/os/APT/Raspberry-Pi-OS.c @@ -19,9 +19,9 @@ os_raspberrypi_prelude () chef_set_contributors (this, 1, "Yangmoooo", "yangmoooo@outlook.com"); - chef_has_getfn(); - chef_has_setfn(); - chef_has_resetfn(); + chef_allow_get(); + chef_allow_set(); + chef_allow_reset(); /* Raspberry Pi OS 树莓派操作系统,以前称为 Raspbian */ def_upstream("https://archive.raspberrypi.com/"); diff --git a/src/recipe/os/APT/Termux.c b/src/recipe/os/APT/Termux.c index 6c976d8..b14e625 100644 --- a/src/recipe/os/APT/Termux.c +++ b/src/recipe/os/APT/Termux.c @@ -19,9 +19,9 @@ os_termux_prelude () chef_set_contributors (this, 1, "Nul None", "nul@none.org"); - chef_has_get(); - chef_has_set(); - chef_has_reset(); + chef_allow_get(); + chef_allow_set(); + chef_allow_reset(); this.note = "该 recipe 存在对应的 bootstrapper"; def_upstream("https://packages.termux.org/apt/termux-main/"); diff --git a/src/recipe/os/APT/Trisquel.c b/src/recipe/os/APT/Trisquel.c index e12e681..af6ceba 100644 --- a/src/recipe/os/APT/Trisquel.c +++ b/src/recipe/os/APT/Trisquel.c @@ -19,9 +19,9 @@ os_trisquel_prelude () chef_set_contributors (this, 1, "Nil Null", "nil@null.org"); - chef_has_get(); - chef_has_set(); - chef_has_reset(); + chef_allow_get(); + chef_allow_set(); + chef_allow_reset(); /* Trisquel基于Ubuntu开发,不含任何专有软件及专有固件,内核使用 Linux-libre */ def_upstream("http://archive.trisquel.info/trisquel/"); diff --git a/src/recipe/os/APT/Ubuntu.c b/src/recipe/os/APT/Ubuntu.c index cd1c49f..944ffec 100644 --- a/src/recipe/os/APT/Ubuntu.c +++ b/src/recipe/os/APT/Ubuntu.c @@ -21,9 +21,9 @@ os_ubuntu_prelude () chef_set_contributors (this, 1, "Zhao", "1792582687@qq.com"); - chef_has_getfn; - chef_has_setfn; - chef_has_resetsrc; + chef_allow_get(); + chef_allow_set(); + chef_allow_reset(); #define OS_Ubuntu_Speed_URL_Postfix "/dists/noble/Contents-amd64.gz" diff --git a/src/recipe/os/APT/deepin.c b/src/recipe/os/APT/deepin.c index e0d903b..efc9894 100644 --- a/src/recipe/os/APT/deepin.c +++ b/src/recipe/os/APT/deepin.c @@ -19,9 +19,9 @@ os_deepin_prelude () chef_set_contributors (this, 1, "Yangmoooo", "yangmoooo@outlook.com"); - chef_has_getfn(); - chef_has_setfn(); - chef_has_resetsrc(); + chef_allow_get(); + chef_allow_set(); + chef_allow_reset(); def_upstream("https://community-packages.deepin.com/deepin"); def_sources_begin(os_deepin) diff --git a/src/recipe/os/APT/openKylin.c b/src/recipe/os/APT/openKylin.c index fa91208..814101f 100644 --- a/src/recipe/os/APT/openKylin.c +++ b/src/recipe/os/APT/openKylin.c @@ -19,9 +19,9 @@ os_openkylin_prelude () chef_set_contributors (this, 1, "Aoran Zeng", "ccmywish@qq.com"); - chef_has_getfn(); - chef_has_setfn(); - chef_has_resetfn(); + chef_allow_get(); + chef_allow_set(); + chef_allow_reset(); /* openKylin直接基于Linux内核开发,属于和Debian、openSUSE、Fedora、Arch * 同一级别的、根社区发布的系统 */ diff --git a/src/recipe/os/Alpine-Linux.c b/src/recipe/os/Alpine-Linux.c index 2245eeb..5c8df05 100644 --- a/src/recipe/os/Alpine-Linux.c +++ b/src/recipe/os/Alpine-Linux.c @@ -25,9 +25,9 @@ os_alpine_prelude () chef_set_contributors (this, 1, "Yangmoooo", "yangmoooo@outlook.com"); - chef_has_getfn(); - chef_has_setfn(); - // chef_has_resetsrc(); + chef_allow_get(); + chef_allow_set(); + // chef_allow_reset(); this.cap_locally = CanNot; this.cap_locally_explain = NULL; this.can_english = true; diff --git a/src/recipe/os/BSD/FreeBSD.c b/src/recipe/os/BSD/FreeBSD.c index 9145711..8a6dbf2 100644 --- a/src/recipe/os/BSD/FreeBSD.c +++ b/src/recipe/os/BSD/FreeBSD.c @@ -1,7 +1,7 @@ chef_set_created_on ("2023-09-03"); chef_set_authors ("Aoran Zeng ", "Heng Guo <2085471348@qq.com>"); chef_set_contributors ("Nil Null "); -chef_has_setfn; +chef_allow_set(); use_this; /** diff --git a/src/recipe/os/BSD/NetBSD.c b/src/recipe/os/BSD/NetBSD.c index 1f7b53f..68023fb 100644 --- a/src/recipe/os/BSD/NetBSD.c +++ b/src/recipe/os/BSD/NetBSD.c @@ -1,8 +1,8 @@ chef_set_created_on ("2023-09-05"); chef_set_authors ("Aoran Zeng ", "Heng Guo <2085471348@qq.com>"); chef_set_contributors ("Nil Null "); -chef_has_getfn; -chef_has_setfn; +chef_allow_get(); +chef_allow_set(); use_this; /** diff --git a/src/recipe/os/BSD/OpenBSD.c b/src/recipe/os/BSD/OpenBSD.c index 667044a..eefe683 100644 --- a/src/recipe/os/BSD/OpenBSD.c +++ b/src/recipe/os/BSD/OpenBSD.c @@ -1,8 +1,8 @@ chef_set_created_on ("2023-09-03"); chef_set_authors ("Heng Guo <2085471348@qq.com>", "Aoran Zeng "); chef_set_contributors ("Nil Null "); -chef_has_getfn; -chef_has_setfn; +chef_allow_get(); +chef_allow_set(); use_this; /** diff --git a/src/recipe/os/Gentoo-Linux.c b/src/recipe/os/Gentoo-Linux.c index 2a3a8d9..97523c7 100644 --- a/src/recipe/os/Gentoo-Linux.c +++ b/src/recipe/os/Gentoo-Linux.c @@ -19,9 +19,9 @@ os_gentoo_prelude () chef_set_contributors (this, 1, "Aoran Zeng", "ccmywish@qq.com"); - // chef_has_getfn(); - chef_has_setfn(); - // chef_has_resetsrc(); + // chef_allow_get(); + chef_allow_set(); + // chef_allow_reset(); this.cap_locally = CanNot; this.cap_locally_explain = NULL; this.can_english = true; diff --git a/src/recipe/os/OpenWrt.c b/src/recipe/os/OpenWrt.c index 14a05bb..65ca078 100644 --- a/src/recipe/os/OpenWrt.c +++ b/src/recipe/os/OpenWrt.c @@ -26,9 +26,9 @@ os_openwrt_prelude () "Yangmoooo", "yangmoooo@outlook.com", "happy game", "happygame1024@gmail.com"); - chef_has_getfn(); - chef_has_setfn(); - chef_has_resetsrc(); + chef_allow_get(); + chef_allow_set(); + chef_allow_reset(); this.cap_locally = CanNot; this.cap_locally_explain = NULL; this.can_english = true; diff --git a/src/recipe/os/Solus.c b/src/recipe/os/Solus.c index dcdb7a9..45dcf65 100644 --- a/src/recipe/os/Solus.c +++ b/src/recipe/os/Solus.c @@ -19,9 +19,9 @@ os_solus_prelude () chef_set_contributors (this, 1, "Nil Null", "nil@null.org"); - // chef_has_getfn(); - chef_has_setfn(); - // chef_has_resetsrc(); + // chef_allow_get(); + chef_allow_set(); + // chef_allow_reset(); this.cap_locally = CanNot; this.cap_locally_explain = NULL; this.can_english = false; diff --git a/src/recipe/os/Void-Linux.c b/src/recipe/os/Void-Linux.c index 66c58c5..ef262a1 100644 --- a/src/recipe/os/Void-Linux.c +++ b/src/recipe/os/Void-Linux.c @@ -25,9 +25,9 @@ os_voidlinux_prelude () chef_set_contributors (this, 1, "Yangmoooo", "yangmoooo@outlook.com"); - chef_has_getfn(); - chef_has_setfn(); - chef_has_resetsrc(); + chef_allow_get(); + chef_allow_set(); + chef_allow_reset(); this.cap_locally = CanNot; this.cap_locally_explain = NULL; this.can_english = false; diff --git a/src/recipe/os/YUM/AlmaLinux.c b/src/recipe/os/YUM/AlmaLinux.c index e45f203..d2a485f 100644 --- a/src/recipe/os/YUM/AlmaLinux.c +++ b/src/recipe/os/YUM/AlmaLinux.c @@ -1,7 +1,7 @@ chef_set_created_on ("2024-06-12"); chef_set_authors ("Aoran Zeng "); chef_set_contributors ("Yangmoooo "); -chef_has_setfn; +chef_allow_set(); use_this; static SourceProvider_t os_almalinux_upstream = diff --git a/src/recipe/os/YUM/Anolis-OS.c b/src/recipe/os/YUM/Anolis-OS.c index 6d3f6fa..28428c1 100644 --- a/src/recipe/os/YUM/Anolis-OS.c +++ b/src/recipe/os/YUM/Anolis-OS.c @@ -1,7 +1,7 @@ chef_set_created_on ("2023-09-24"); chef_set_authors ("Aoran Zeng "); chef_set_contributors ("Nil Null "); -chef_has_setfn; +chef_allow_set(); use_this; /** diff --git a/src/recipe/os/YUM/Fedora-Linux.c b/src/recipe/os/YUM/Fedora-Linux.c index 85e9b2a..4d87d03 100644 --- a/src/recipe/os/YUM/Fedora-Linux.c +++ b/src/recipe/os/YUM/Fedora-Linux.c @@ -1,8 +1,8 @@ chef_set_created_on ("2023-09-26"); chef_set_authors ("Heng Guo <2085471348@qq.com>", "happy game "); chef_set_contributors ("Aoran Zeng "); -chef_has_setfn; -chef_has_resetsrc; +chef_allow_set(); +chef_allow_reset(); use_this; /** diff --git a/src/recipe/os/YUM/Rocky-Linux.c b/src/recipe/os/YUM/Rocky-Linux.c index c8a5f8c..7b90413 100644 --- a/src/recipe/os/YUM/Rocky-Linux.c +++ b/src/recipe/os/YUM/Rocky-Linux.c @@ -1,8 +1,8 @@ chef_set_created_on ("2023-09-24"); chef_set_authors ("Aoran Zeng "); chef_set_contributors ("happy game "); -chef_has_setfn; -chef_has_resetsrc; +chef_allow_set(); +chef_allow_reset(); use_this; /** diff --git a/src/recipe/os/YUM/openEuler.c b/src/recipe/os/YUM/openEuler.c index a339c95..c1419da 100644 --- a/src/recipe/os/YUM/openEuler.c +++ b/src/recipe/os/YUM/openEuler.c @@ -1,7 +1,7 @@ chef_set_created_on ("2023-09-06"); chef_set_authors ("Heng Guo <2085471348@qq.com>"); chef_set_contributors ("Aoran Zeng ", "Yangmoooo ", "happy game "); -chef_has_setfn; +chef_allow_set(); use_this; static SourceProvider_t os_openEuler_upstream = @@ -85,6 +85,6 @@ os_openeuler_resetsrc (char *option) /** * chsrc ls openeuler */ -chef_has_getfn; -chef_has_resetsrc; +chef_allow_get(); +chef_allow_reset(); def_target(os_openeuler); diff --git a/src/recipe/os/openSUSE.c b/src/recipe/os/openSUSE.c index f29b1d0..7e1a816 100644 --- a/src/recipe/os/openSUSE.c +++ b/src/recipe/os/openSUSE.c @@ -19,9 +19,9 @@ os_opensuse_prelude () chef_set_contributors (this, 1, "Aoran Zeng", "ccmywish@qq.com"); - // chef_has_getfn(); - chef_has_setfn(); - // chef_has_resetsrc(); + // chef_allow_get(); + chef_allow_set(); + // chef_allow_reset(); this.cap_locally = CanNot; this.cap_locally_explain = NULL; this.can_english = false; diff --git a/src/recipe/os/pacman/Arch-Linux.c b/src/recipe/os/pacman/Arch-Linux.c index 40c14a8..488ffac 100644 --- a/src/recipe/os/pacman/Arch-Linux.c +++ b/src/recipe/os/pacman/Arch-Linux.c @@ -1,8 +1,8 @@ chef_set_created_on ("2023-09-05"); chef_set_authors ("Aoran Zeng ", "Heng Guo <2085471348@qq.com>"); chef_set_contributors ("happy game "); -chef_has_getfn; -chef_has_setfn; +chef_allow_get(); +chef_allow_set(); chef_note("可额外使用 chsrc set archlinuxcn 来更换 Arch Linux CN Repository 源"); use_this; @@ -157,7 +157,7 @@ def_target(os_arch); chef_set_created_on ("2023-09-05"); chef_set_authors ("Aoran Zeng ", "Heng Guo <2085471348@qq.com>"); chef_set_contributors ("happy game "); -chef_has_getfn; -chef_has_setfn; +chef_allow_get(); +chef_allow_set(); chef_note("可额外使用 chsrc set arch 来更换 Arch Linux 源"); def_target(os_archlinuxcn); diff --git a/src/recipe/os/pacman/MSYS2.c b/src/recipe/os/pacman/MSYS2.c index f059535..deb991d 100644 --- a/src/recipe/os/pacman/MSYS2.c +++ b/src/recipe/os/pacman/MSYS2.c @@ -1,7 +1,7 @@ chef_set_created_on ("2023-09-06"); chef_set_authors ("Heng Guo <2085471348@qq.com>"); chef_set_contributors ("Aoran Zeng "); -chef_has_setfn; +chef_allow_set(); use_this; /** diff --git a/src/recipe/os/pacman/Manjaro-Linux.c b/src/recipe/os/pacman/Manjaro-Linux.c index 45d646b..2e6accd 100644 --- a/src/recipe/os/pacman/Manjaro-Linux.c +++ b/src/recipe/os/pacman/Manjaro-Linux.c @@ -1,7 +1,7 @@ chef_set_created_on ("2023-09-06"); chef_set_authors ("Heng Guo <2085471348@qq.com>"); chef_set_contributors ("Nil Null "); -chef_has_setfn; +chef_allow_set(); use_this; /** diff --git a/src/recipe/recipe-template.c b/src/recipe/recipe-template.c index 3ab55d5..cf7ae15 100644 --- a/src/recipe/recipe-template.c +++ b/src/recipe/recipe-template.c @@ -62,9 +62,9 @@ void chef_set_contributors (this, 1, "Nil Null", "nil@null.org"); - chef_has_get(); - chef_has_set(); - chef_has_reset(); + chef_allow_get(); + chef_allow_set(); + chef_allow_reset(); this.cap_local = PartiallyCan; this.cap_local_explain = "具体说明是否支持项目级换源..."; diff --git a/src/recipe/ware/Anaconda/Anaconda.c b/src/recipe/ware/Anaconda/Anaconda.c index 50c687c..c2ea6e1 100644 --- a/src/recipe/ware/Anaconda/Anaconda.c +++ b/src/recipe/ware/Anaconda/Anaconda.c @@ -22,9 +22,9 @@ wr_anaconda_prelude () "Yangmoooo", "yangmoooo@outlook.com", "yongxiang", "1926885268@qq.com"); - chef_has_getfn(); - chef_has_setfn(); - // chef_has_resetsrc(); + chef_allow_get(); + chef_allow_set(); + // chef_allow_reset(); this.cap_locally = CanNot; this.cap_locally_explain = NULL; this.can_english = false; diff --git a/src/recipe/ware/CocoaPods.c b/src/recipe/ware/CocoaPods.c index e4c6370..20a9435 100644 --- a/src/recipe/ware/CocoaPods.c +++ b/src/recipe/ware/CocoaPods.c @@ -19,9 +19,9 @@ wr_cocoapods_prelude () chef_set_contributors (this, 1, "Nil Null", "nil@null.org"); - // chef_has_getfn(); - chef_has_setfn(); - // chef_has_resetsrc(); + // chef_allow_get(); + chef_allow_set(); + // chef_allow_reset(); this.cap_locally = CanNot; this.cap_locally_explain = NULL; this.can_english = false; diff --git a/src/recipe/ware/Docker-Hub/Docker-Hub.c b/src/recipe/ware/Docker-Hub/Docker-Hub.c index f57181f..b0e25d5 100644 --- a/src/recipe/ware/Docker-Hub/Docker-Hub.c +++ b/src/recipe/ware/Docker-Hub/Docker-Hub.c @@ -38,9 +38,9 @@ wr_dockerhub_prelude () chef_set_contributors (this, 1, "Nil Null", "nil@null.org"); - chef_has_getfn(); - chef_has_setfn(); - // chef_has_resetsrc(); + chef_allow_get(); + chef_allow_set(); + // chef_allow_reset(); this.cap_locally = CanNot; this.cap_locally_explain = NULL; this.can_english = false; diff --git a/src/recipe/ware/Emacs.c b/src/recipe/ware/Emacs.c index 15722d6..2d7bb79 100644 --- a/src/recipe/ware/Emacs.c +++ b/src/recipe/ware/Emacs.c @@ -26,9 +26,9 @@ wr_emacs_prelude () chef_set_contributors (this, 1, "Nil Null", "nil@null.org"); - // chef_has_getfn(); - chef_has_setfn(); - // chef_has_resetsrc(); + // chef_allow_get(); + chef_allow_set(); + // chef_allow_reset(); this.cap_locally = CanNot; this.cap_locally_explain = NULL; this.can_english = false; diff --git a/src/recipe/ware/Flathub.c b/src/recipe/ware/Flathub.c index 6644e02..a3caed9 100644 --- a/src/recipe/ware/Flathub.c +++ b/src/recipe/ware/Flathub.c @@ -19,9 +19,9 @@ wr_flathub_prelude () chef_set_contributors (this, 1, "Jialin Lyu", "jialinlvcn@aliyun.com"); - chef_has_getfn(); - chef_has_setfn(); - chef_has_resetsrc(); + chef_allow_get(); + chef_allow_set(); + chef_allow_reset(); this.cap_locally = CanNot; this.cap_locally_explain = NULL; this.can_english = false; diff --git a/src/recipe/ware/Guix.c b/src/recipe/ware/Guix.c index edf92b1..1457a0a 100644 --- a/src/recipe/ware/Guix.c +++ b/src/recipe/ware/Guix.c @@ -19,9 +19,9 @@ wr_guix_prelude () chef_set_contributors (this, 1, "Nil Null", "nil@null.org"); - // chef_has_getfn(); - chef_has_setfn(); - // chef_has_resetsrc(); + // chef_allow_get(); + chef_allow_set(); + // chef_allow_reset(); this.cap_locally = CanNot; this.cap_locally_explain = NULL; this.can_english = false; diff --git a/src/recipe/ware/Homebrew/Homebrew.c b/src/recipe/ware/Homebrew/Homebrew.c index 9023a9c..c1d5801 100644 --- a/src/recipe/ware/Homebrew/Homebrew.c +++ b/src/recipe/ware/Homebrew/Homebrew.c @@ -21,9 +21,9 @@ wr_homebrew_prelude () chef_set_contributors (this, 1, "Word2VecT", "tangzinan@bupt.edu.cn"); - chef_has_getfn(); - chef_has_setfn(); - // chef_has_resetsrc(); + chef_allow_get(); + chef_allow_set(); + // chef_allow_reset(); this.cap_locally = CanNot; this.cap_locally_explain = NULL; this.can_english = true; diff --git a/src/recipe/ware/Nix.c b/src/recipe/ware/Nix.c index 9c6527d..a462e37 100644 --- a/src/recipe/ware/Nix.c +++ b/src/recipe/ware/Nix.c @@ -19,9 +19,9 @@ wr_nix_prelude () chef_set_contributors (this, 1, "Nil Null", "nil@null.org"); - // chef_has_getfn(); - chef_has_setfn(); - // chef_has_resetsrc(); + // chef_allow_get(); + chef_allow_set(); + // chef_allow_reset(); this.cap_locally = CanNot; this.cap_locally_explain = NULL; this.can_english = false; diff --git a/src/recipe/ware/TeX-Live.c b/src/recipe/ware/TeX-Live.c index 0bac57b..6b74beb 100644 --- a/src/recipe/ware/TeX-Live.c +++ b/src/recipe/ware/TeX-Live.c @@ -21,9 +21,9 @@ wr_tex_prelude () chef_set_contributors (this, 1, "Mikachu2333", "mikachu.23333@zohomail.com"); - chef_has_getfn(); - chef_has_setfn(); - // chef_has_resetsrc(); + chef_allow_get(); + chef_allow_set(); + // chef_allow_reset(); this.cap_locally = CanNot; this.cap_locally_explain = NULL; this.can_english = false; diff --git a/src/recipe/ware/WinGet.c b/src/recipe/ware/WinGet.c index 590cb56..2d21dc1 100644 --- a/src/recipe/ware/WinGet.c +++ b/src/recipe/ware/WinGet.c @@ -18,9 +18,9 @@ wr_winget_prelude () chef_set_sous_chefs (this, 0); chef_set_contributors (this, 0); - chef_has_getfn(); - chef_has_setfn(); - chef_has_resetsrc(); + chef_allow_get(); + chef_allow_set(); + chef_allow_reset(); this.can_english = false; this.can_user_define = true;