diff options
author | Roland McGrath <roland@redhat.com> | 1995-03-09 01:42:12 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1995-03-09 01:42:12 +0000 |
commit | 1adf3a07dcf164ea8a05535b64af70ce96ba58b3 (patch) | |
tree | 070246cdb92e51a2de4d8be15d884f7513a0a8aa /read.c | |
parent | a5a27a893de620410e7749f33aab4919b11321da (diff) | |
download | gunmake-1adf3a07dcf164ea8a05535b64af70ce96ba58b3.tar.gz |
(read_makefile, parse_file_seq) [__MS_DOS__]: Don't see : as separator in
"C:\...".
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); |