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: remove outdated comment about VarEvalFlags



details:   https://anonhg.NetBSD.org/src/rev/e2ced1523de7
branches:  trunk
changeset: 1018401:e2ced1523de7
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Feb 01 21:38:20 2021 +0000

description:
make: remove outdated comment about VarEvalFlags

The previous variable preserveUndefined is now the flag VARE_KEEP_UNDEF.

diffstat:

 usr.bin/make/nonints.h |  22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diffs (47 lines):

diff -r f59ac1ce353c -r e2ced1523de7 usr.bin/make/nonints.h
--- a/usr.bin/make/nonints.h    Mon Feb 01 21:34:41 2021 +0000
+++ b/usr.bin/make/nonints.h    Mon Feb 01 21:38:20 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nonints.h,v 1.188 2021/01/24 20:11:55 rillig Exp $     */
+/*     $NetBSD: nonints.h,v 1.189 2021/02/01 21:38:20 rillig Exp $     */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -286,26 +286,28 @@
 typedef enum VarEvalFlags {
        VARE_NONE               = 0,
 
-       /* Expand and evaluate variables during parsing.
+       /*
+        * Expand and evaluate variables during parsing.
         *
         * TODO: Document what Var_Parse and Var_Subst return when this flag
-        * is not set. */
+        * is not set.
+        */
        VARE_WANTRES            = 1 << 0,
 
-       /* Treat undefined variables as errors.
-        * Must only be used in combination with VARE_WANTRES. */
+       /*
+        * Treat undefined variables as errors.
+        * Must only be used in combination with VARE_WANTRES.
+        */
        VARE_UNDEFERR           = 1 << 1,
 
-       /* Keep '$$' as '$$' instead of reducing it to a single '$'.
+       /*
+        * Keep '$$' as '$$' instead of reducing it to a single '$'.
         *
         * Used in variable assignments using the ':=' operator.  It allows
         * multiple such assignments to be chained without accidentally
         * expanding '$$file' to '$file' in the first assignment and
         * interpreting it as '${f}' followed by 'ile' in the next assignment.
-        *
-        * See also preserveUndefined, which preserves subexpressions that are
-        * based on undefined variables; maybe that can be converted to a flag
-        * as well. */
+        */
        VARE_KEEP_DOLLAR        = 1 << 2,
 
        /*



Home | Main Index | Thread Index | Old Index