summaryrefslogtreecommitdiffstats
path: root/usr.bin/make
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-06-24 17:34:15 +0000
committerache <ache@FreeBSD.org>1995-06-24 17:34:15 +0000
commit57c30762f204af5a91ffe26eb72134e15da55f09 (patch)
treed1afbc883611bf01527056a08c99431f398544e1 /usr.bin/make
parent904e84eb3ba9d6455be659526a99041eda9df219 (diff)
downloadFreeBSD-src-57c30762f204af5a91ffe26eb72134e15da55f09.zip
FreeBSD-src-57c30762f204af5a91ffe26eb72134e15da55f09.tar.gz
Back out prev. NetBSD fix, it cause skipping some error constructions,
don't delete initial space from line instead
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/parse.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c
index 26f7413..a56e398 100644
--- a/usr.bin/make/parse.c
+++ b/usr.bin/make/parse.c
@@ -2256,10 +2256,8 @@ test_char:
ep = line;
while (*ep)
++ep;
- while (ep > line && (ep[-1] == ' ' || ep[-1] == '\t')) {
- if (ep > line + 1 && ep[-2] == '\\')
- break;
- if (ep == line + 1 && ep[-1] == '\t')
+ while (ep > line + 1 && (ep[-1] == ' ' || ep[-1] == '\t')) {
+ if (ep[-2] == '\\')
break;
--ep;
}
@@ -2405,7 +2403,7 @@ Parse_File(name, stream)
goto nextLine;
}
}
- if (*line == '#' || *line == '\0') {
+ if (*line == '#') {
/* If we're this far, the line must be a comment. */
goto nextLine;
}
OpenPOWER on IntegriCloud