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 ShortVarValue to UndefinedShort...



details:   https://anonhg.NetBSD.org/src/rev/f1d9c928303c
branches:  trunk
changeset: 944466:f1d9c928303c
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Sep 29 19:20:08 2020 +0000

description:
make(1): rename ShortVarValue to UndefinedShortVarValue

diffstat:

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

diffs (36 lines):

diff -r 8f001937b207 -r f1d9c928303c usr.bin/make/var.c
--- a/usr.bin/make/var.c        Tue Sep 29 18:48:43 2020 +0000
+++ b/usr.bin/make/var.c        Tue Sep 29 19:20:08 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.552 2020/09/29 18:44:30 rillig Exp $ */
+/*     $NetBSD: var.c,v 1.553 2020/09/29 19:20:08 rillig Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -121,7 +121,7 @@
 #include    "metachar.h"
 
 /*     "@(#)var.c      8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: var.c,v 1.552 2020/09/29 18:44:30 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.553 2020/09/29 19:20:08 rillig Exp $");
 
 #define VAR_DEBUG1(fmt, arg1) DEBUG1(VAR, fmt, arg1)
 #define VAR_DEBUG2(fmt, arg1, arg2) DEBUG2(VAR, fmt, arg1, arg2)
@@ -3294,7 +3294,7 @@
 }
 
 static const char *
-ShortVarValue(char varname, const GNode *ctxt, VarEvalFlags eflags)
+UndefinedShortVarValue(char varname, const GNode *ctxt, VarEvalFlags eflags)
 {
     if (ctxt == VAR_CMD || ctxt == VAR_GLOBAL) {
        /*
@@ -3489,7 +3489,7 @@
        if (v == NULL) {
            *pp += 2;
 
-           *out_val = ShortVarValue(startc, ctxt, eflags);
+           *out_val = UndefinedShortVarValue(startc, ctxt, eflags);
            if (DEBUG(LINT) && *out_val == var_Error) {
                Parse_Error(PARSE_FATAL, "Variable \"%s\" is undefined", name);
                return VPR_UNDEF_MSG;



Home | Main Index | Thread Index | Old Index