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

Commit4262278

Browse files
committed
Rename function to first_path_var_separator() to clarify it works with
path variables, not directory paths.
1 parentbffb638 commit4262278

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

‎src/backend/utils/fmgr/dfmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ find_in_dynamic_libpath(const char *basename)
610610
char*mangled;
611611
char*full;
612612

613-
piece=first_path_separator(p);
613+
piece=first_path_var_separator(p);
614614
if (piece==p)
615615
ereport(ERROR,
616616
(errcode(ERRCODE_INVALID_NAME),

‎src/include/port.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ extern bool pg_set_block(pgsocket sock);
3636

3737
externchar*first_dir_separator(constchar*filename);
3838
externchar*last_dir_separator(constchar*filename);
39-
externchar*first_path_separator(constchar*pathlist);
39+
externchar*first_path_var_separator(constchar*pathlist);
4040
externvoidjoin_path_components(char*ret_path,
4141
constchar*head,constchar*tail);
4242
externvoidcanonicalize_path(char*path);

‎src/port/exec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ find_my_exec(const char *argv0, char *retpath)
168168
else
169169
startp=endp+1;
170170

171-
endp=first_path_separator(startp);
171+
endp=first_path_var_separator(startp);
172172
if (!endp)
173173
endp=startp+strlen(startp);/* point to end */
174174

‎src/port/path.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ first_dir_separator(const char *filename)
9898
}
9999

100100
/*
101-
*first_path_separator
101+
*first_path_var_separator
102102
*
103103
* Find the location of the first path separator (i.e. ':' on
104104
* Unix, ';' on Windows), return NULL if not found.
105105
*/
106106
char*
107-
first_path_separator(constchar*pathlist)
107+
first_path_var_separator(constchar*pathlist)
108108
{
109109
constchar*p;
110110

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp