diff --git a/chsrc.c b/chsrc.c index 1ac4f79..1ad847f 100644 --- a/chsrc.c +++ b/chsrc.c @@ -2,7 +2,7 @@ * File : chsrc.c * Authors : Aoran Zeng * Created on : <2023-08-28> -* Last modified : <2023-08-29> +* Last modified : <2023-08-30> * * chsrc: * @@ -22,7 +22,7 @@ * 参考:https://mirrors.tuna.tsinghua.edu.cn/help/pypi/ */ void -pl_chsrc_python (char* source_name) +pl_python_chsrc (char* source_name) { char* source_url = NULL; @@ -48,7 +48,7 @@ pl_chsrc_python (char* source_name) * 参考:https://gitee.com/RubyKids/rbenv-cn */ void -pl_chsrc_ruby (char* option) +pl_ruby_chsrc (char* option) { int selected = 0; for (int i=0;i * Created on : <2023-08-29> -* Last modified : <2023-08-29> +* Last modified : <2023-08-30> * * chsrc: * * chsrc.c 头文件 * -------------------------------------------------------------*/ - typedef struct { const char* abbr; const char* name; diff --git a/helper.h b/helper.h index 19eca92..fe156ac 100644 --- a/helper.h +++ b/helper.h @@ -19,7 +19,7 @@ #define xy_useutf8() #endif -#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) +#define Array_Size(x) (sizeof(x) / sizeof(x[0])) char* xy_strjoin (const char* str1, const char* str2)