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(1): rename parameter of Var_Value



details:   https://anonhg.NetBSD.org/src/rev/047d7b0be9c2
branches:  trunk
changeset: 956522:047d7b0be9c2
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Oct 31 23:23:22 2020 +0000

description:
make(1): rename parameter of Var_Value

diffstat:

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

diffs (47 lines):

diff -r eb6ead4e22fc -r 047d7b0be9c2 usr.bin/make/var.c
--- a/usr.bin/make/var.c        Sat Oct 31 23:10:06 2020 +0000
+++ b/usr.bin/make/var.c        Sat Oct 31 23:23:22 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.631 2020/10/31 21:40:20 rillig Exp $ */
+/*     $NetBSD: var.c,v 1.632 2020/10/31 23:23:22 rillig Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -130,7 +130,7 @@
 #include "metachar.h"
 
 /*     "@(#)var.c      8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: var.c,v 1.631 2020/10/31 21:40:20 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.632 2020/10/31 23:23:22 rillig Exp $");
 
 #define VAR_DEBUG1(fmt, arg1) DEBUG1(VAR, fmt, arg1)
 #define VAR_DEBUG2(fmt, arg1, arg2) DEBUG2(VAR, fmt, arg1, arg2)
@@ -1013,23 +1013,23 @@
  *
  * Results:
  *     The value if the variable exists, NULL if it doesn't.
- *     If the returned value is not NULL, the caller must free *freeIt
- *     as soon as the returned value is no longer needed.
+ *     If the returned value is not NULL, the caller must free
+ *     out_freeIt when the returned value is no longer needed.
  *-----------------------------------------------------------------------
  */
 const char *
-Var_Value(const char *name, GNode *ctxt, void **freeIt)
+Var_Value(const char *name, GNode *ctxt, void **out_freeIt)
 {
     Var *v = VarFind(name, ctxt, TRUE);
     char *value;
 
-    *freeIt = NULL;
+    *out_freeIt = NULL;
     if (v == NULL)
        return NULL;
 
     value = Buf_GetAll(&v->val, NULL);
     if (VarFreeEnv(v, FALSE))
-       *freeIt = value;
+       *out_freeIt = value;
     return value;
 }
 



Home | Main Index | Thread Index | Old Index