1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-05 09:19:17 +03:00

Rename function to first_path_var_separator() to clarify it works with

path variables, not directory paths.
This commit is contained in:
Bruce Momjian 2011-02-02 22:49:54 -05:00
parent bffb638d16
commit 426227850b
4 changed files with 5 additions and 5 deletions

View File

@ -610,7 +610,7 @@ find_in_dynamic_libpath(const char *basename)
char *mangled; char *mangled;
char *full; char *full;
piece = first_path_separator(p); piece = first_path_var_separator(p);
if (piece == p) if (piece == p)
ereport(ERROR, ereport(ERROR,
(errcode(ERRCODE_INVALID_NAME), (errcode(ERRCODE_INVALID_NAME),

View File

@ -36,7 +36,7 @@ extern bool pg_set_block(pgsocket sock);
extern char *first_dir_separator(const char *filename); extern char *first_dir_separator(const char *filename);
extern char *last_dir_separator(const char *filename); extern char *last_dir_separator(const char *filename);
extern char *first_path_separator(const char *pathlist); extern char *first_path_var_separator(const char *pathlist);
extern void join_path_components(char *ret_path, extern void join_path_components(char *ret_path,
const char *head, const char *tail); const char *head, const char *tail);
extern void canonicalize_path(char *path); extern void canonicalize_path(char *path);

View File

@ -168,7 +168,7 @@ find_my_exec(const char *argv0, char *retpath)
else else
startp = endp + 1; startp = endp + 1;
endp = first_path_separator(startp); endp = first_path_var_separator(startp);
if (!endp) if (!endp)
endp = startp + strlen(startp); /* point to end */ endp = startp + strlen(startp); /* point to end */

View File

@ -98,13 +98,13 @@ first_dir_separator(const char *filename)
} }
/* /*
* first_path_separator * first_path_var_separator
* *
* Find the location of the first path separator (i.e. ':' on * Find the location of the first path separator (i.e. ':' on
* Unix, ';' on Windows), return NULL if not found. * Unix, ';' on Windows), return NULL if not found.
*/ */
char * char *
first_path_separator(const char *pathlist) first_path_var_separator(const char *pathlist)
{ {
const char *p; const char *p;