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): document use of magic values in CondDo...
details: https://anonhg.NetBSD.org/src/rev/6c16b6e9fd11
branches: trunk
changeset: 975648:6c16b6e9fd11
user: rillig <rillig%NetBSD.org@localhost>
date: Thu Sep 03 17:16:01 2020 +0000
description:
make(1): document use of magic values in CondDoEmpty
diffstat:
usr.bin/make/cond.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (43 lines):
diff -r 1a98c6104aa3 -r 6c16b6e9fd11 usr.bin/make/cond.c
--- a/usr.bin/make/cond.c Thu Sep 03 17:13:42 2020 +0000
+++ b/usr.bin/make/cond.c Thu Sep 03 17:16:01 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cond.c,v 1.108 2020/09/03 16:14:58 rillig Exp $ */
+/* $NetBSD: cond.c,v 1.109 2020/09/03 17:16:01 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: cond.c,v 1.108 2020/09/03 16:14:58 rillig Exp $";
+static char rcsid[] = "$NetBSD: cond.c,v 1.109 2020/09/03 17:16:01 rillig Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)cond.c 8.2 (Berkeley) 1/2/94";
#else
-__RCSID("$NetBSD: cond.c,v 1.108 2020/09/03 16:14:58 rillig Exp $");
+__RCSID("$NetBSD: cond.c,v 1.109 2020/09/03 17:16:01 rillig Exp $");
#endif
#endif /* not lint */
#endif
@@ -719,6 +719,7 @@
static Boolean
CondDoEmpty(int arglen, const char *arg MAKE_ATTR_UNUSED)
{
+ /* Magic values ahead, see get_mpt_arg. */
return arglen == 1;
}
@@ -1232,7 +1233,7 @@
}
}
- /* And evaluate the conditional expresssion */
+ /* And evaluate the conditional expression */
if (Cond_EvalExpression(ifp, line, &value, 1, TRUE) == COND_INVALID) {
/* Syntax error in conditional, error message already output. */
/* Skip everything to matching .endif */
Home |
Main Index |
Thread Index |
Old Index