projects
/
users
/
hanada
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0af695f
)
Clearify macro IS_PATH_VAR_SEP in path.c so it is clear this is a path
author
Bruce Momjian
<
[email protected]
>
Thu, 3 Feb 2011 03:28:14 +0000
(22:28 -0500)
committer
Bruce Momjian
<
[email protected]
>
Thu, 3 Feb 2011 03:28:45 +0000
(22:28 -0500)
variable, not a directory path.
src/port/path.c
patch
|
blob
|
blame
|
history
diff --git
a/src/port/path.c
b/src/port/path.c
index ed2241f9ec385a2a4f818a2ab3862882471daa9b..08397d5b99c67c1605f3245c52431360f0beedd0 100644
(file)
--- a/
src/port/path.c
+++ b/
src/port/path.c
@@
-41,9
+41,9
@@
#endif
#ifndef WIN32
-#define IS_PATH_SEP(ch) ((ch) == ':')
+#define IS_PATH_
VAR_
SEP(ch) ((ch) == ':')
#else
-#define IS_PATH_SEP(ch) ((ch) == ';')
+#define IS_PATH_
VAR_
SEP(ch) ((ch) == ';')
#endif
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 */
for (p = pathlist; *p; p++)
- if (IS_PATH_SEP(*p))
+ if (IS_PATH_
VAR_
SEP(*p))
return (char *) p;
return NULL;
}