Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make(1): remove assertion about lines ending wi...



details:   https://anonhg.NetBSD.org/src/rev/b59b9c813dd5
branches:  trunk
changeset: 958067:b59b9c813dd5
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Dec 22 08:31:13 2020 +0000

description:
make(1): remove assertion about lines ending with '\n'

It fails the NetBSD build.sh.

diffstat:

 usr.bin/make/parse.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r ea82a343c4d9 -r b59b9c813dd5 usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Tue Dec 22 08:23:12 2020 +0000
+++ b/usr.bin/make/parse.c      Tue Dec 22 08:31:13 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.512 2020/12/22 08:10:39 rillig Exp $       */
+/*     $NetBSD: parse.c,v 1.513 2020/12/22 08:31:13 rillig Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -117,7 +117,7 @@
 #include "pathnames.h"
 
 /*     "@(#)parse.c    8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: parse.c,v 1.512 2020/12/22 08:10:39 rillig Exp $");
+MAKE_RCSID("$NetBSD: parse.c,v 1.513 2020/12/22 08:31:13 rillig Exp $");
 
 /* types and constants */
 
@@ -2841,7 +2841,6 @@
 
                /* We now have a line of data */
                /* TODO: Remove line_end, it's not necessary here. */
-               assert(*line_end == '\n');
                *line_end = '\0';
 
                if (mode == GLM_FOR_BODY)



Home | Main Index | Thread Index | Old Index