From 4ecdc7f7bd22087ea3621efb3d3a8b974a878d60 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Tue, 10 Dec 2024 16:23:22 +0800 Subject: [PATCH] Rename inner macro --- src/framework/core.c | 12 ++++++++---- src/recipe/lang/Node.js/Node.js.c | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/framework/core.c b/src/framework/core.c index eb3de18..cc66f49 100644 --- a/src/framework/core.c +++ b/src/framework/core.c @@ -9,7 +9,7 @@ * | Yangmoooo * | * Created On : <2023-08-29> - * Last Modified : <2024-12-09> + * Last Modified : <2024-12-10> * * chsrc framework * ------------------------------------------------------------*/ @@ -819,8 +819,12 @@ source_has_empty_url (Source_t *source) +static inline void +divide_source_changing_process () +{ + say ("--------------------------------"); +} -#define split_between_source_changing_process puts ("--------------------------------") /** * 用于 _setsrc 函数 @@ -857,7 +861,7 @@ confirm_source (Source_t *source) say (xy_strjoin (5, msg, green (source->mirror->abbr), " (", green (source->mirror->code), ")")); } - split_between_source_changing_process; + divide_source_changing_process(); } #define chsrc_yield_source_and_confirm(for_what) chsrc_yield_source(for_what);chsrc_confirm_source @@ -895,7 +899,7 @@ confirm_source (Source_t *source) void chsrc_conclude (Source_t *source) { - split_between_source_changing_process; + divide_source_changing_process(); // fprintf (stderr, "chsrc: now change type: %d\n", ProgMode_ChgType); diff --git a/src/recipe/lang/Node.js/Node.js.c b/src/recipe/lang/Node.js/Node.js.c index 73b0c9b..4912645 100644 --- a/src/recipe/lang/Node.js/Node.js.c +++ b/src/recipe/lang/Node.js/Node.js.c @@ -35,7 +35,7 @@ pl_nodejs_getsrc (char *option) bool npm_exist, yarn_exist, pnpm_exist; pl_nodejs_check_cmd (&npm_exist, &yarn_exist, &pnpm_exist); - split_between_source_changing_process; + divide_source_changing_process(); if (npm_exist) {