Module Name: src Committed By: rillig Date: Thu Sep 3 17:16:01 UTC 2020
Modified Files: src/usr.bin/make: cond.c Log Message: make(1): document use of magic values in CondDoEmpty To generate a diff of this commit: cvs rdiff -u -r1.108 -r1.109 src/usr.bin/make/cond.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/make/cond.c diff -u src/usr.bin/make/cond.c:1.108 src/usr.bin/make/cond.c:1.109 --- src/usr.bin/make/cond.c:1.108 Thu Sep 3 16:14:58 2020 +++ src/usr.bin/make/cond.c Thu Sep 3 17:16:01 2020 @@ -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 @@ get_mpt_arg(Boolean doEval, const char * 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 @@ Cond_Eval(const char *line) } } - /* 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 */