(read_makefile, parse_file_seq) [__MS_DOS__]: Don't see : as separator in
authorRoland McGrath <roland@redhat.com>
Thu, 9 Mar 1995 01:42:12 +0000 (01:42 +0000)
committerRoland McGrath <roland@redhat.com>
Thu, 9 Mar 1995 01:42:12 +0000 (01:42 +0000)
"C:\...".

read.c

diff --git a/read.c b/read.c
index 87a2f121bba791586ec4dc22422d7bb0b72283dd..e28c5e89848f85bc76beac154add39e423a63fe2 100644 (file)
--- a/read.c
+++ b/read.c
@@ -723,6 +723,11 @@ read_makefile (filename, flags)
              else
                break;
            }
+#ifdef __MS_DOS__
+         /* For MS-DOS, skip a "C:\...".  */
+         if (p != 0 && p[1] == '\\' && isalpha (p[-1]))
+           p = 0;
+#endif
          if (p != 0)
            {
              struct nameseq *target;
@@ -1538,6 +1543,11 @@ parse_file_seq (stringp, stopchar, size, strip)
       /* Yes, find end of next name.  */
       q = p;
       p = find_char_unquote (q, stopchar, 1);
+#ifdef __MS_DOS__
+      /* For MS-DOS, skip a "C:\...".  */
+      if (stopchar == ':' && p != 0 && p[1] == '\\' && isalpha (p[-1]))
+       p = 0;
+#endif
       if (p == 0)
        p = q + strlen (q);