mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-02-07 04:55:46 +00:00
(read_makefile, parse_file_seq) [__MS_DOS__]: Don't see : as separator in
"C:\...".
This commit is contained in:
parent
a5a27a893d
commit
1adf3a07dc
1 changed files with 10 additions and 0 deletions
10
read.c
10
read.c
|
@ -723,6 +723,11 @@ read_makefile (filename, flags)
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#ifdef __MS_DOS__
|
||||||
|
/* For MS-DOS, skip a "C:\...". */
|
||||||
|
if (p != 0 && p[1] == '\\' && isalpha (p[-1]))
|
||||||
|
p = 0;
|
||||||
|
#endif
|
||||||
if (p != 0)
|
if (p != 0)
|
||||||
{
|
{
|
||||||
struct nameseq *target;
|
struct nameseq *target;
|
||||||
|
@ -1538,6 +1543,11 @@ parse_file_seq (stringp, stopchar, size, strip)
|
||||||
/* Yes, find end of next name. */
|
/* Yes, find end of next name. */
|
||||||
q = p;
|
q = p;
|
||||||
p = find_char_unquote (q, stopchar, 1);
|
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)
|
if (p == 0)
|
||||||
p = q + strlen (q);
|
p = q + strlen (q);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue