Skip to content

Commit cb6d514

Browse files
committed
main,refactor: revise the name of stages
"Recursive" the word used in the original code may mislead developers about the behavior of the functions related to the stages. Signed-off-by: Masatake YAMATO <[email protected]>
1 parent 32745a0 commit cb6d514

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

main/options.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ typedef enum eOptionLoadingStage {
194194
OptionLoadingStageNone,
195195
OptionLoadingStageCustom,
196196
OptionLoadingStageXdg,
197-
OptionLoadingStageHomeRecursive,
198-
OptionLoadingStageCurrentRecursive,
197+
OptionLoadingStageHomeDir,
198+
OptionLoadingStageCurrentDir,
199199
OptionLoadingStageEnvVar,
200200
OptionLoadingStageCmdline,
201201
} OptionLoadingStage;
@@ -613,8 +613,8 @@ static const char *const StageDescription [] = {
613613
[OptionLoadingStageNone] = "not initialized",
614614
[OptionLoadingStageCustom] = "custom file",
615615
[OptionLoadingStageXdg] = "file(s) under $XDG_CONFIG_HOME and $HOME/.config",
616-
[OptionLoadingStageHomeRecursive] = "file(s) under $HOME",
617-
[OptionLoadingStageCurrentRecursive] = "file(s) under the current directory",
616+
[OptionLoadingStageHomeDir] = "file(s) under $HOME",
617+
[OptionLoadingStageCurrentDir] = "file(s) under the current directory",
618618
[OptionLoadingStageCmdline] = "command line",
619619
};
620620

@@ -3768,28 +3768,28 @@ static struct preloadPathElt preload_path_list [] = {
37683768
.isDirectory = true,
37693769
.makePath = prependEnvvar,
37703770
.extra = "HOME",
3771-
.stage = OptionLoadingStageHomeRecursive,
3771+
.stage = OptionLoadingStageHomeDir,
37723772
},
37733773
#ifdef WIN32
37743774
{
37753775
.path = "ctags.d",
37763776
.isDirectory = true,
37773777
.makePath = getConfigAtHomeOnWindows,
37783778
.extra = NULL,
3779-
.stage = OptionLoadingStageHomeRecursive,
3779+
.stage = OptionLoadingStageHomeDir,
37803780
},
37813781
#endif
37823782
{
37833783
.path = ".ctags.d",
37843784
.isDirectory = true,
37853785
.makePath = NULL,
3786-
.stage = OptionLoadingStageCurrentRecursive,
3786+
.stage = OptionLoadingStageCurrentDir,
37873787
},
37883788
{
37893789
.path = "ctags.d",
37903790
.isDirectory = true,
37913791
.makePath = NULL,
3792-
.stage = OptionLoadingStageCurrentRecursive,
3792+
.stage = OptionLoadingStageCurrentDir,
37933793
},
37943794
{
37953795
.path = NULL,

0 commit comments

Comments
 (0)