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: fix documentation about operator associat...
details: https://anonhg.NetBSD.org/src/rev/8e92b41c6148
branches: trunk
changeset: 1023676:8e92b41c6148
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Sep 21 20:51:38 2021 +0000
description:
make: fix documentation about operator associativity in conditions
diffstat:
usr.bin/make/cond.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r 3af5a1ba5c93 -r 8e92b41c6148 usr.bin/make/cond.c
--- a/usr.bin/make/cond.c Tue Sep 21 20:34:37 2021 +0000
+++ b/usr.bin/make/cond.c Tue Sep 21 20:51:38 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cond.c,v 1.270 2021/07/29 06:35:20 rillig Exp $ */
+/* $NetBSD: cond.c,v 1.271 2021/09/21 20:51:38 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -95,14 +95,14 @@
#include "dir.h"
/* "@(#)cond.c 8.2 (Berkeley) 1/2/94" */
-MAKE_RCSID("$NetBSD: cond.c,v 1.270 2021/07/29 06:35:20 rillig Exp $");
+MAKE_RCSID("$NetBSD: cond.c,v 1.271 2021/09/21 20:51:38 rillig Exp $");
/*
* The parsing of conditional expressions is based on this grammar:
- * Or -> And '||' Or
* Or -> And
- * And -> Term '&&' And
+ * Or -> Or '||' And
* And -> Term
+ * And -> And '&&' Term
* Term -> Function '(' Argument ')'
* Term -> Leaf Operator Leaf
* Term -> Leaf
@@ -977,8 +977,8 @@
}
/*
- * And -> Term '&&' And
* And -> Term
+ * And -> And '&&' Term
*/
static CondResult
CondParser_And(CondParser *par, bool doEval)
@@ -1004,8 +1004,8 @@
}
/*
- * Or -> And '||' Or
* Or -> And
+ * Or -> Or '||' And
*/
static CondResult
CondParser_Or(CondParser *par, bool doEval)
Home |
Main Index |
Thread Index |
Old Index