Module Name: src
Committed By: rillig
Date: Sat Nov 7 13:13:19 UTC 2020
Modified Files:
src/usr.bin/make: nonints.h
Log Message:
make(1): document the relation between VARE_ASSIGN and preserveUndefined
To generate a diff of this commit:
cvs rdiff -u -r1.154 -r1.155 src/usr.bin/make/nonints.h
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/nonints.h
diff -u src/usr.bin/make/nonints.h:1.154 src/usr.bin/make/nonints.h:1.155
--- src/usr.bin/make/nonints.h:1.154 Sat Nov 7 10:16:19 2020
+++ src/usr.bin/make/nonints.h Sat Nov 7 13:13:19 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: nonints.h,v 1.154 2020/11/07 10:16:19 rillig Exp $ */
+/* $NetBSD: nonints.h,v 1.155 2020/11/07 13:13:19 rillig Exp $ */
/*-
* Copyright (c) 1988, 1989, 1990, 1993
@@ -220,7 +220,10 @@ typedef enum VarEvalFlags {
/* Expand and evaluate variables during parsing. */
VARE_WANTRES = 1 << 1,
/* In an assignment using the ':=' operator, keep '$$' as '$$' instead
- * of reducing it to a single '$'. */
+ * of reducing it to a single '$'.
+ *
+ * See also preserveUndefined, which preserves subexpressions based on
+ * undefined variables; maybe that can be converted to a flag as well. */
VARE_ASSIGN = 1 << 2
} VarEvalFlags;