PR standards/17732: make doesn't honour escaped comment lines. Now with

a real fix.
Ok'ed by sjg and hubertf.
This commit is contained in:
rpaulo 2005-06-18 14:32:04 +00:00
parent 77ab74c241
commit f0f2f92389
1 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: parse.c,v 1.101 2005/06/16 14:54:10 rpaulo Exp $ */
/* $NetBSD: parse.c,v 1.102 2005/06/18 14:32:04 rpaulo Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
static char rcsid[] = "$NetBSD: parse.c,v 1.101 2005/06/16 14:54:10 rpaulo Exp $";
static char rcsid[] = "$NetBSD: parse.c,v 1.102 2005/06/18 14:32:04 rpaulo Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94";
#else
__RCSID("$NetBSD: parse.c,v 1.101 2005/06/16 14:54:10 rpaulo Exp $");
__RCSID("$NetBSD: parse.c,v 1.102 2005/06/18 14:32:04 rpaulo Exp $");
#endif
#endif /* not lint */
#endif
@ -2552,6 +2552,13 @@ test_char:
*/
do {
c = ParseReadc();
/*
* If we found a backslash not escaped
* itself it means that the comment is
* going to continue in the next line.
*/
if (c == '\\')
ParseReadc();
} while ((c != '\n') && (c != EOF));
goto line_read;
} else {