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): consistently use postfix-increment
details: https://anonhg.NetBSD.org/src/rev/a2b4d76c75c0
branches: trunk
changeset: 937068:a2b4d76c75c0
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Aug 08 13:13:34 2020 +0000
description:
make(1): consistently use postfix-increment
diffstat:
usr.bin/make/var.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (54 lines):
diff -r 840eaebf14ee -r a2b4d76c75c0 usr.bin/make/var.c
--- a/usr.bin/make/var.c Sat Aug 08 13:09:55 2020 +0000
+++ b/usr.bin/make/var.c Sat Aug 08 13:13:34 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: var.c,v 1.425 2020/08/08 13:05:24 rillig Exp $ */
+/* $NetBSD: var.c,v 1.426 2020/08/08 13:13:34 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: var.c,v 1.425 2020/08/08 13:05:24 rillig Exp $";
+static char rcsid[] = "$NetBSD: var.c,v 1.426 2020/08/08 13:13:34 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.425 2020/08/08 13:05:24 rillig Exp $");
+__RCSID("$NetBSD: var.c,v 1.426 2020/08/08 13:13:34 rillig Exp $");
#endif
#endif /* not lint */
#endif
@@ -1717,12 +1717,12 @@
int want = have == PROPEN ? PRCLOSE : BRCLOSE;
int depth = 1;
- for (p += 2; *p != '\0' && depth > 0; ++p) {
+ for (p += 2; *p != '\0' && depth > 0; p++) {
if (p[-1] != '\\') {
if (*p == have)
- ++depth;
+ depth++;
if (*p == want)
- --depth;
+ depth--;
}
}
Buf_AddBytesBetween(&buf, varstart, p);
@@ -2225,9 +2225,9 @@
if (*p == '$')
needSubst = TRUE;
if (*p == '(' || *p == '{')
- ++nest;
+ nest++;
if (*p == ')' || *p == '}') {
- --nest;
+ nest--;
if (nest < 0)
break;
}
Home |
Main Index |
Thread Index |
Old Index