From 493e2924c061399b3ae5a7f7bdc75427c985d05f Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Thu, 31 Aug 2023 22:57:09 +0800 Subject: [PATCH] Rename functions and temp macros --- chsrc.c | 88 +++++++++++++++++++++++++++++++++------------------------ chsrc.h | 2 +- 2 files changed, 52 insertions(+), 38 deletions(-) diff --git a/chsrc.c b/chsrc.c index f0f2382..92551b4 100644 --- a/chsrc.c +++ b/chsrc.c @@ -51,7 +51,7 @@ does_the_program_exist (char* check_cmd, char* progname) * 参考:https://help.mirrors.cernet.edu.cn/CPAN/ */ void -pl_perl_chsrc (char* option) +pl_perl_setsrc (char* option) { int selected = 0; char* check_cmd, *prog = NULL; @@ -94,7 +94,7 @@ pl_perl_chsrc (char* option) * 参考:https://npmmirror.com/ */ void -pl_nodejs_chsrc (char* option) +pl_nodejs_setsrc (char* option) { int selected = 0; char* check_cmd, *prog = NULL; @@ -134,7 +134,7 @@ pl_nodejs_chsrc (char* option) * 经测试,Windows上调用换源命令,会写入 C:\Users\RubyMetric\AppData\Roaming\pip\pip.ini */ void -pl_python_chsrc (char* option) +pl_python_setsrc (char* option) { int selected = 0; char* check_cmd, *prog = NULL; @@ -183,7 +183,7 @@ pl_python_chsrc (char* option) * 参考:https://gitee.com/RubyKids/rbenv-cn */ void -pl_ruby_chsrc (char* option) +pl_ruby_setsrc (char* option) { int selected = 0; char* check_cmd = NULL; for (int i=0;i