From 2f22cc074c6c609ca9d15f5a23ae7ddaaf038182 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sat, 24 Jun 1995 17:34:15 +0000 Subject: Back out prev. NetBSD fix, it cause skipping some error constructions, don't delete initial space from line instead --- usr.bin/make/parse.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'usr.bin/make') diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index 26f741390a9e..a56e398d785e 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; } -- cgit v1.2.3