path variables, not directory paths.
char *mangled;
char *full;
- piece = first_path_separator(p);
+ piece = first_path_var_separator(p);
if (piece == p)
ereport(ERROR,
(errcode(ERRCODE_INVALID_NAME),
extern char *first_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,
const char *head, const char *tail);
extern void canonicalize_path(char *path);
else
startp = endp + 1;
- endp = first_path_separator(startp);
+ endp = first_path_var_separator(startp);
if (!endp)
endp = startp + strlen(startp); /* point to end */
}
/*
- * first_path_separator
+ * first_path_var_separator
*
* Find the location of the first path separator (i.e. ':' on
* Unix, ';' on Windows), return NULL if not found.
*/
char *
-first_path_separator(const char *pathlist)
+first_path_var_separator(const char *pathlist)
{
const char *p;