Clearify macro IS_PATH_VAR_SEP in path.c so it is clear this is a path

variable, not a directory path.
This commit is contained in:
Bruce Momjian 2011-02-02 22:28:14 -05:00
parent 0af695fd43
commit bffb638d16

View File

@ -41,9 +41,9 @@
#endif #endif
#ifndef WIN32 #ifndef WIN32
#define IS_PATH_SEP(ch) ((ch) == ':') #define IS_PATH_VAR_SEP(ch) ((ch) == ':')
#else #else
#define IS_PATH_SEP(ch) ((ch) == ';') #define IS_PATH_VAR_SEP(ch) ((ch) == ';')
#endif #endif
static void make_relative_path(char *ret_path, const char *target_path, static void make_relative_path(char *ret_path, const char *target_path,
@ -110,7 +110,7 @@ first_path_separator(const char *pathlist)
/* skip_drive is not needed */ /* skip_drive is not needed */
for (p = pathlist; *p; p++) for (p = pathlist; *p; p++)
if (IS_PATH_SEP(*p)) if (IS_PATH_VAR_SEP(*p))
return (char *) p; return (char *) p;
return NULL; return NULL;
} }