diff options
| author | Will Andrews <will@FreeBSD.org> | 2001-03-15 10:22:50 +0000 |
|---|---|---|
| committer | Will Andrews <will@FreeBSD.org> | 2001-03-15 10:22:50 +0000 |
| commit | fdcd2e7d3a89072503f3bc1bd4787ec1529a77c5 (patch) | |
| tree | 6729897203db3bcc264613e3a2d0d37c36d0be35 /usr.bin/make | |
| parent | f7191d4fae983f11fa8377824986f450051f2846 (diff) | |
Notes
Diffstat (limited to 'usr.bin/make')
| -rw-r--r-- | usr.bin/make/parse.c | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index 2f1c3369a7fc..7dc9e61073e4 100644 --- a/usr.bin/make/parse.c +++ b/usr.bin/make/parse.c @@ -2057,24 +2057,18 @@ ParseSkipLine(skip) while (((c = ParseReadc()) != '\n' || lastc == '\\') && c != EOF) { - if (c == '#' && lastc != '\\') { - while ((c = ParseReadc()) != '\n' && c != EOF); + if (c == '\n') { + Buf_ReplaceLastByte(buf, (Byte)' '); + lineno++; - break; - } else { - if (c == '\n') { - Buf_ReplaceLastByte(buf, (Byte)' '); - lineno++; + while ((c = ParseReadc()) == ' ' || c == '\t'); - while ((c = ParseReadc()) == ' ' || c == '\t'); - - if (c == EOF) - break; - } - - Buf_AddByte(buf, (Byte)c); - lastc = c; + if (c == EOF) + break; } + + Buf_AddByte(buf, (Byte)c); + lastc = c; } if (c == EOF) { |
