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 local variable in Var_Subst
details: https://anonhg.NetBSD.org/src/rev/c6d25412c11e
branches: trunk
changeset: 976098:c6d25412c11e
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Sep 12 19:15:20 2020 +0000
description:
make(1): rename local variable in Var_Subst
diffstat:
usr.bin/make/var.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (57 lines):
diff -r 760ecbaaaa70 -r c6d25412c11e usr.bin/make/var.c
--- a/usr.bin/make/var.c Sat Sep 12 19:13:43 2020 +0000
+++ b/usr.bin/make/var.c Sat Sep 12 19:15:20 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: var.c,v 1.499 2020/09/12 19:13:43 rillig Exp $ */
+/* $NetBSD: var.c,v 1.500 2020/09/12 19:15:20 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: var.c,v 1.499 2020/09/12 19:13:43 rillig Exp $";
+static char rcsid[] = "$NetBSD: var.c,v 1.500 2020/09/12 19:15:20 rillig Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)var.c 8.3 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: var.c,v 1.499 2020/09/12 19:13:43 rillig Exp $");
+__RCSID("$NetBSD: var.c,v 1.500 2020/09/12 19:15:20 rillig Exp $");
#endif
#endif /* not lint */
#endif
@@ -3643,7 +3643,7 @@
Var_Subst(const char *str, GNode *ctxt, VarEvalFlags eflags)
{
Buffer buf; /* Buffer for forming things */
- Boolean trailingBslash;
+ Boolean trailingBackslash;
/* Set true if an error has already been reported,
* to prevent a plethora of messages when recursing */
@@ -3651,10 +3651,10 @@
Buf_Init(&buf, 0);
errorReported = FALSE;
- trailingBslash = FALSE; /* variable ends in \ */
+ trailingBackslash = FALSE; /* variable ends in \ */
while (*str) {
- if (*str == '\n' && trailingBslash)
+ if (*str == '\n' && trailingBackslash)
Buf_AddByte(&buf, ' ');
if (*str == '$' && str[1] == '$') {
@@ -3714,7 +3714,7 @@
val_len = strlen(val);
Buf_AddBytes(&buf, val, val_len);
- trailingBslash = val_len > 0 && val[val_len - 1] == '\\';
+ trailingBackslash = val_len > 0 && val[val_len - 1] == '\\';
}
free(freeIt);
freeIt = NULL;
Home |
Main Index |
Thread Index |
Old Index