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): reduce line length in var.c
details: https://anonhg.NetBSD.org/src/rev/d8f3b6c2fc8c
branches: trunk
changeset: 973550:d8f3b6c2fc8c
user: rillig <rillig%NetBSD.org@localhost>
date: Fri Jul 03 22:40:55 2020 +0000
description:
make(1): reduce line length in var.c
diffstat:
usr.bin/make/var.c | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
diffs (67 lines):
diff -r 3e62199bd135 -r d8f3b6c2fc8c usr.bin/make/var.c
--- a/usr.bin/make/var.c Fri Jul 03 22:34:22 2020 +0000
+++ b/usr.bin/make/var.c Fri Jul 03 22:40:55 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: var.c,v 1.245 2020/07/03 22:34:22 rillig Exp $ */
+/* $NetBSD: var.c,v 1.246 2020/07/03 22:40:55 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: var.c,v 1.245 2020/07/03 22:34:22 rillig Exp $";
+static char rcsid[] = "$NetBSD: var.c,v 1.246 2020/07/03 22:40:55 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.245 2020/07/03 22:34:22 rillig Exp $");
+__RCSID("$NetBSD: var.c,v 1.246 2020/07/03 22:40:55 rillig Exp $");
#endif
#endif /* not lint */
#endif
@@ -2262,7 +2262,8 @@
#define STRMOD_MATCH(s, want, n) \
(strncmp(s, want, n) == 0 && (s[n] == st->endc || s[n] == ':'))
#define STRMOD_MATCHX(s, want, n) \
- (strncmp(s, want, n) == 0 && (s[n] == st->endc || s[n] == ':' || s[n] == '='))
+ (strncmp(s, want, n) == 0 && \
+ (s[n] == st->endc || s[n] == ':' || s[n] == '='))
#define CHARMOD_MATCH(c) (c == st->endc || c == ':')
/* :@var@...${var}...@ */
@@ -2290,7 +2291,8 @@
loop.flags = st->flags & (VARF_UNDEFERR | VARF_WANTRES);
loop.ctxt = st->ctxt;
- st->newStr = VarModify(st->ctxt, &st->parsestate, st->nstr, VarLoopExpand, &loop);
+ st->newStr = VarModify(
+ st->ctxt, &st->parsestate, st->nstr, VarLoopExpand, &loop);
Var_Delete(loop.tvar, st->ctxt);
free(loop.tvar);
free(loop.str);
@@ -3384,7 +3386,8 @@
if (*st.tstr == ':')
st.tstr++;
else if (!*st.tstr && st.endc) {
- Error("Unclosed variable specification after complex modifier (expecting '%c') for %s", st.endc, st.v->name);
+ Error("Unclosed variable specification after complex "
+ "modifier (expecting '%c') for %s", st.endc, st.v->name);
goto out;
}
continue;
@@ -3590,7 +3593,9 @@
}
}
if (st.termc == '\0' && st.endc != '\0') {
- Error("Unclosed variable specification (expecting '%c') for \"%s\" (value \"%s\") modifier %c", st.endc, st.v->name, st.nstr, st.modifier);
+ Error("Unclosed variable specification (expecting '%c') "
+ "for \"%s\" (value \"%s\") modifier %c",
+ st.endc, st.v->name, st.nstr, st.modifier);
} else if (st.termc == ':') {
st.cp++;
}
Home |
Main Index |
Thread Index |
Old Index