Module Name:    src
Committed By:   rillig
Date:           Fri Sep 11 07:09:40 UTC 2020

Modified Files:
        src/usr.bin/make: cond.c

Log Message:
make(1): document CondParser_Comparison


To generate a diff of this commit:
cvs rdiff -u -r1.128 -r1.129 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.128 src/usr.bin/make/cond.c:1.129
--- src/usr.bin/make/cond.c:1.128	Fri Sep 11 06:47:42 2020
+++ src/usr.bin/make/cond.c	Fri Sep 11 07:09:40 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: cond.c,v 1.128 2020/09/11 06:47:42 rillig Exp $	*/
+/*	$NetBSD: cond.c,v 1.129 2020/09/11 07:09:40 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.128 2020/09/11 06:47:42 rillig Exp $";
+static char rcsid[] = "$NetBSD: cond.c,v 1.129 2020/09/11 07:09:40 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.128 2020/09/11 06:47:42 rillig Exp $");
+__RCSID("$NetBSD: cond.c,v 1.129 2020/09/11 07:09:40 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -523,6 +523,13 @@ static const struct If {
     { NULL,    0, FALSE, NULL }
 };
 
+/* Parse a comparison condition such as:
+ *
+ *	0
+ *	${VAR:Mpattern}
+ *	${VAR} == value
+ *	${VAR:U0} < 12345
+ */
 static Token
 CondParser_Comparison(CondParser *par, Boolean doEval)
 {

Reply via email to