Rename inner macro

This commit is contained in:
Aoran Zeng 2024-12-10 16:23:22 +08:00
parent a8ee7ec037
commit 4ecdc7f7bd
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 9 additions and 5 deletions

View File

@ -9,7 +9,7 @@
* | Yangmoooo <yangmoooo@outlook.com>
* |
* 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);

View File

@ -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)
{