@@ -701,13 +701,13 @@ source_has_empty_url (SourceInfo *source)
701701 * 1. 用户指定某个 MirrorCode
702702 * 2. NULL: 用户什么都没指定 (将测速选择最快镜像)
703703 * 3. 用户给了一个 URL
704- * 4. ChsrcTypeReset
704+ * 4. SetsrcType_Reset
705705 * 选用了Leader target
706706 * 5. ProgMode_Leader_Selected_Index 将给出所选索引
707707 *
708708 * @dependency 变量 option
709709 */
710- #define chsrc_yield_the_source (for_what ) \
710+ #define chsrc_yield_for_the_source (for_what ) \
711711 if (ProgMode_Target_Group==true && ProgMode_Leader_Selected_Index==-1) \
712712 { \
713713 ProgMode_Leader_Selected_Index = use_specific_mirror_or_auto_select (option, for_what); \
@@ -730,7 +730,7 @@ source_has_empty_url (SourceInfo *source)
730730
731731#define chsrc_yield_source (for_what ) \
732732 SourceInfo source; \
733- chsrc_yield_the_source (for_what)
733+ chsrc_yield_for_the_source (for_what)
734734
735735
736736
@@ -778,11 +778,11 @@ confirm_source (SourceInfo *source)
778778#define chsrc_yield_source_and_confirm (for_what ) chsrc_yield_source(for_what);chsrc_confirm_source
779779
780780
781- #define ChsrcTypeAuto "auto"
782- #define ChsrcTypeReset "reset"
783- #define ChsrcTypeSemiAuto "semiauto"
784- #define ChsrcTypeManual "manual"
785- #define ChsrcTypeUntested "untested"
781+ #define SetsrcType_Auto "auto"
782+ #define SetsrcType_Reset "reset"
783+ #define SetsrcType_SemiAuto "semiauto"
784+ #define SetsrcType_Manual "manual"
785+ #define SetsrcType_Untested "untested"
786786
787787#define MSG_EN_PUBLIC_URL "If the URL you specify is a public service, you are invited to contribute: chsrc issue"
788788#define MSG_CN_PUBLIC_URL "若您指定的URL为公有服务,邀您参与贡献: chsrc issue"
@@ -809,15 +809,15 @@ confirm_source (SourceInfo *source)
809809
810810/**
811811 * @param source 可为NULL
812- * @param last_word 5种选择:ChsrcTypeAuto | ChsrcTypeReset | ChsrcTypeSemiAuto | ChsrcTypeManual | ChsrcTypeUntested
812+ * @param last_word 5种选择:SetsrcType_Auto | SetsrcType_Reset | SetsrcType_SemiAuto | SetsrcType_Manual | SetsrcType_Untested
813813 * @translation Done
814814 */
815815void
816816chsrc_conclude (SourceInfo * source , const char * last_word )
817817{
818818 split_between_source_changing_process ;
819819
820- if (xy_streql (ChsrcTypeAuto , last_word ))
820+ if (xy_streql (SetsrcType_Auto , last_word ))
821821 {
822822 if (source )
823823 {
@@ -840,13 +840,13 @@ chsrc_conclude (SourceInfo *source, const char *last_word)
840840 chsrc_log (msg );
841841 }
842842 }
843- else if (xy_streql (ChsrcTypeReset , last_word ))
843+ else if (xy_streql (SetsrcType_Reset , last_word ))
844844 {
845845 // source_is_upstream (source)
846846 char * msg = CliOpt_InEnglish ? "Has been reset to the upstream default source" : "已重置为上游默认源" ;
847847 chsrc_log (purple (msg ));
848848 }
849- else if (xy_streql (ChsrcTypeSemiAuto , last_word ))
849+ else if (xy_streql (SetsrcType_SemiAuto , last_word ))
850850 {
851851 if (source )
852852 {
@@ -873,7 +873,7 @@ chsrc_conclude (SourceInfo *source, const char *last_word)
873873 char * msg = CliOpt_InEnglish ? MSG_EN_BETTER : MSG_CN_BETTER ;
874874 chsrc_warn (msg );
875875 }
876- else if (xy_streql (ChsrcTypeManual , last_word ))
876+ else if (xy_streql (SetsrcType_Manual , last_word ))
877877 {
878878 if (source )
879879 {
@@ -898,7 +898,7 @@ chsrc_conclude (SourceInfo *source, const char *last_word)
898898 char * msg = CliOpt_InEnglish ? MSG_EN_BETTER : MSG_CN_BETTER ;
899899 chsrc_warn (msg );
900900 }
901- else if (xy_streql (ChsrcTypeUntested , last_word ))
901+ else if (xy_streql (SetsrcType_Untested , last_word ))
902902 {
903903 if (source )
904904 {
0 commit comments