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: constify, fix comment indentation



details:   https://anonhg.NetBSD.org/src/rev/13d42eb1323d
branches:  trunk
changeset: 371241:13d42eb1323d
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Oct 01 09:27:45 2022 +0000

description:
make: constify, fix comment indentation

No functional change.

diffstat:

 usr.bin/make/var.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r 047327a79d29 -r 13d42eb1323d usr.bin/make/var.c
--- a/usr.bin/make/var.c        Sat Oct 01 09:25:06 2022 +0000
+++ b/usr.bin/make/var.c        Sat Oct 01 09:27:45 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.1034 2022/10/01 09:20:47 rillig Exp $        */
+/*     $NetBSD: var.c,v 1.1035 2022/10/01 09:27:45 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -139,7 +139,7 @@
 #include "metachar.h"
 
 /*     "@(#)var.c      8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: var.c,v 1.1034 2022/10/01 09:20:47 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.1035 2022/10/01 09:27:45 rillig Exp $");
 
 /*
  * Variables are defined using one of the VAR=value assignments.  Their
@@ -198,9 +198,9 @@
        bool readOnly:1;
 
        /*
-       * The variable's value is currently being used by Var_Parse or
-       * Var_Subst.  This marker is used to avoid endless recursion.
-       */
+        * The variable is currently being accessed by Var_Parse or Var_Subst.
+        * This temporary marker is used to avoid endless recursion.
+        */
        bool inUse:1;
 
        /*
@@ -4797,7 +4797,7 @@
 
        for (i = 0; i < vec.len; i++) {
                const char *varname = varnames[i];
-               Var *var = HashTable_FindValue(&scope->vars, varname);
+               const Var *var = HashTable_FindValue(&scope->vars, varname);
                debug_printf("%-16s = %s%s\n", varname,
                    var->val.data, ValueDescription(var->val.data));
        }



Home | Main Index | Thread Index | Old Index