diff options
-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 2f1c336..7dc9e61 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) { |