Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbffb638

Browse files
committed
Clearify macro IS_PATH_VAR_SEP in path.c so it is clear this is a path
variable, not a directory path.
1 parent0af695f commitbffb638

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/port/path.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
#endif
4242

4343
#ifndefWIN32
44-
#defineIS_PATH_SEP(ch) ((ch) == ':')
44+
#defineIS_PATH_VAR_SEP(ch) ((ch) == ':')
4545
#else
46-
#defineIS_PATH_SEP(ch) ((ch) == ';')
46+
#defineIS_PATH_VAR_SEP(ch) ((ch) == ';')
4747
#endif
4848

4949
staticvoidmake_relative_path(char*ret_path,constchar*target_path,
@@ -110,7 +110,7 @@ first_path_separator(const char *pathlist)
110110

111111
/* skip_drive is not needed */
112112
for (p=pathlist;*p;p++)
113-
if (IS_PATH_SEP(*p))
113+
if (IS_PATH_VAR_SEP(*p))
114114
return (char*)p;
115115
returnNULL;
116116
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp