summaryrefslogtreecommitdiff
path: root/w32
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1997-09-16 14:17:23 +0000
committerPaul Smith <psmith@gnu.org>1997-09-16 14:17:23 +0000
commit1c6911ddac23b4c5b9a7caf758e4a3310a605577 (patch)
treee917b3102fdc25e5dbeceac703a5b58be39f55a5 /w32
parent12bfec95eb2e3dad743271c1437229e3fb5af57e (diff)
downloadmake-1c6911ddac23b4c5b9a7caf758e4a3310a605577.tar.gz
Changes for GNU make 3.76
Diffstat (limited to 'w32')
-rw-r--r--w32/pathstuff.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/w32/pathstuff.c b/w32/pathstuff.c
index 01ed52f2..52f24a26 100644
--- a/w32/pathstuff.c
+++ b/w32/pathstuff.c
@@ -38,11 +38,15 @@ convert_Path_to_windows32(char *Path, char to_delim)
if ((etok - p) == 1) {
if (*(etok - 1) == ';' ||
*(etok - 1) == ':') {
- etok[-1] = to_delim;
- etok[0] = to_delim;
+ etok[-1] = to_delim;
+ etok[0] = to_delim;
p = ++etok;
continue; /* ignore empty bucket */
- } else if (etok = strpbrk(etok+1, ":;")) {
+ } else if (!isalpha(*p)) {
+ /* found one to count, handle things like '.' */
+ *etok = to_delim;
+ p = ++etok;
+ } else if ((*etok == ':') && (etok = strpbrk(etok+1, ":;"))) {
/* found one to count, handle drive letter */
*etok = to_delim;
p = ++etok;
@@ -55,11 +59,6 @@ convert_Path_to_windows32(char *Path, char to_delim)
p = ++etok;
}
-#if 0
- /* convert to backward slashes */
- for (p = Path, p = strchr(p, '/'); p; p = strchr(p, '/'))
- *p = '\\';
-#endif
return Path;
}