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): fix local variable names in ParseModif...



details:   https://anonhg.NetBSD.org/src/rev/3b766d426c13
branches:  trunk
changeset: 956503:3b766d426c13
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Oct 31 18:05:16 2020 +0000

description:
make(1): fix local variable names in ParseModifierPart

diffstat:

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

diffs (38 lines):

diff -r bc6cbfb8b11f -r 3b766d426c13 usr.bin/make/var.c
--- a/usr.bin/make/var.c        Sat Oct 31 17:39:20 2020 +0000
+++ b/usr.bin/make/var.c        Sat Oct 31 18:05:16 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.626 2020/10/31 15:23:52 rillig Exp $ */
+/*     $NetBSD: var.c,v 1.627 2020/10/31 18:05:16 rillig Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -129,7 +129,7 @@
 #include    "metachar.h"
 
 /*     "@(#)var.c      8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: var.c,v 1.626 2020/10/31 15:23:52 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.627 2020/10/31 18:05:16 rillig Exp $");
 
 #define VAR_DEBUG1(fmt, arg1) DEBUG1(VAR, fmt, arg1)
 #define VAR_DEBUG2(fmt, arg1, arg2) DEBUG2(VAR, fmt, arg1, arg2)
@@ -1955,15 +1955,15 @@
             * and suck it in without further ado.
             * It will be interpreted later.
             */
-           char have = p[1];
-           int want = have == '(' ? ')' : '}';
+           char startc = p[1];
+           int endc = startc == '(' ? ')' : '}';
            int depth = 1;
 
            for (p += 2; *p != '\0' && depth > 0; p++) {
                if (p[-1] != '\\') {
-                   if (*p == have)
+                   if (*p == startc)
                        depth++;
-                   if (*p == want)
+                   if (*p == endc)
                        depth--;
                }
            }



Home | Main Index | Thread Index | Old Index