From d0b0cdaae75dc274cc0ca607323bcb84a66a8ab5 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Mon, 14 Jul 2025 15:08:10 +0800 Subject: [PATCH] Update macro --- src/framework/core.c | 4 ++-- src/recipe/lang/Node.js/Yarn.c | 2 +- src/recipe/lang/Node.js/npm.c | 2 +- src/recipe/lang/Node.js/pnpm.c | 2 +- src/recipe/lang/Python/PDM.c | 2 +- src/recipe/lang/Python/Poetry.c | 2 +- src/recipe/lang/Python/pip.c | 2 +- src/recipe/lang/Python/uv.c | 2 +- src/recipe/os/BSD/FreeBSD.c | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/framework/core.c b/src/framework/core.c index 357ce44..b0a9dc3 100644 --- a/src/framework/core.c +++ b/src/framework/core.c @@ -1033,7 +1033,7 @@ source_has_empty_url (Source_t *source) * 1. 告知用户选择了什么源和镜像 * 2. 对选择的源和镜像站进行一定的校验 */ -#define chsrc_confirm_source confirm_source(&source) +#define chsrc_confirm_source() confirm_source(&source) void confirm_source (Source_t *source) { @@ -1063,7 +1063,7 @@ confirm_source (Source_t *source) hr(); } -#define chsrc_yield_source_and_confirm(for_what) chsrc_yield_source(for_what);chsrc_confirm_source +#define chsrc_yield_source_and_confirm(for_what) chsrc_yield_source(for_what);chsrc_confirm_source() void diff --git a/src/recipe/lang/Node.js/Yarn.c b/src/recipe/lang/Node.js/Yarn.c index ea189c6..1c900b7 100644 --- a/src/recipe/lang/Node.js/Yarn.c +++ b/src/recipe/lang/Node.js/Yarn.c @@ -42,7 +42,7 @@ pl_nodejs_yarn_setsrc (char *option) { chsrc_yield_source (pl_nodejs_group); if (chsrc_in_standalone_mode()) - chsrc_confirm_source; + chsrc_confirm_source(); char *cmd = NULL; diff --git a/src/recipe/lang/Node.js/npm.c b/src/recipe/lang/Node.js/npm.c index 63390b3..97c087d 100644 --- a/src/recipe/lang/Node.js/npm.c +++ b/src/recipe/lang/Node.js/npm.c @@ -28,7 +28,7 @@ pl_nodejs_npm_setsrc (char *option) { chsrc_yield_source (pl_nodejs_group); if (chsrc_in_standalone_mode()) - chsrc_confirm_source; + chsrc_confirm_source(); char *cmd = NULL; diff --git a/src/recipe/lang/Node.js/pnpm.c b/src/recipe/lang/Node.js/pnpm.c index 26c2bb4..6571ba3 100644 --- a/src/recipe/lang/Node.js/pnpm.c +++ b/src/recipe/lang/Node.js/pnpm.c @@ -29,7 +29,7 @@ pl_nodejs_pnpm_setsrc (char *option) { chsrc_yield_source (pl_nodejs_group); if (chsrc_in_standalone_mode()) - chsrc_confirm_source; + chsrc_confirm_source(); char *cmd = NULL; diff --git a/src/recipe/lang/Python/PDM.c b/src/recipe/lang/Python/PDM.c index 2a1d38d..fdfeba9 100644 --- a/src/recipe/lang/Python/PDM.c +++ b/src/recipe/lang/Python/PDM.c @@ -30,7 +30,7 @@ pl_python_pdm_setsrc (char *option) { chsrc_yield_source (pl_python_group); if (chsrc_in_standalone_mode()) - chsrc_confirm_source; + chsrc_confirm_source(); char *cmd = NULL; diff --git a/src/recipe/lang/Python/Poetry.c b/src/recipe/lang/Python/Poetry.c index 5268d12..4a0b3f8 100644 --- a/src/recipe/lang/Python/Poetry.c +++ b/src/recipe/lang/Python/Poetry.c @@ -29,7 +29,7 @@ pl_python_poetry_setsrc (char *option) { chsrc_yield_source (pl_python_group); if (chsrc_in_standalone_mode()) - chsrc_confirm_source; + chsrc_confirm_source(); char *cmd = NULL; diff --git a/src/recipe/lang/Python/pip.c b/src/recipe/lang/Python/pip.c index a5d8cf3..7f482ee 100644 --- a/src/recipe/lang/Python/pip.c +++ b/src/recipe/lang/Python/pip.c @@ -40,7 +40,7 @@ pl_python_pip_setsrc (char *option) chsrc_yield_source (pl_python_group); if (chsrc_in_standalone_mode()) - chsrc_confirm_source; + chsrc_confirm_source(); char *py_prog_name = NULL; pl_python_get_py_program_name (&py_prog_name); diff --git a/src/recipe/lang/Python/uv.c b/src/recipe/lang/Python/uv.c index e74d9fb..3b62f2d 100644 --- a/src/recipe/lang/Python/uv.c +++ b/src/recipe/lang/Python/uv.c @@ -98,7 +98,7 @@ pl_python_uv_setsrc (char *option) chsrc_yield_source (pl_python_group); if (chsrc_in_standalone_mode()) - chsrc_confirm_source; + chsrc_confirm_source(); char *uv_config = pl_python_find_uv_config (true); if (NULL==uv_config) diff --git a/src/recipe/os/BSD/FreeBSD.c b/src/recipe/os/BSD/FreeBSD.c index c154859..9d30de5 100644 --- a/src/recipe/os/BSD/FreeBSD.c +++ b/src/recipe/os/BSD/FreeBSD.c @@ -42,7 +42,7 @@ os_freebsd_setsrc (char *option) int index = use_specific_mirror_or_auto_select (option, os_freebsd); Source_t source = os_freebsd_sources[index]; - chsrc_confirm_source; + chsrc_confirm_source(); chsrc_log2 ("1. 添加 freebsd-pkg 源 (二进制安装包)"); chsrc_ensure_dir ("/usr/local/etc/pkg/repos");