Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint1 lint: fix indentation and spacing, add a...
details: https://anonhg.NetBSD.org/src/rev/83f6dda01cea
branches: trunk
changeset: 364630:83f6dda01cea
user: rillig <rillig%NetBSD.org@localhost>
date: Fri Apr 01 20:29:37 2022 +0000
description:
lint: fix indentation and spacing, add a missing 'else' to 'else if'
No functional change.
diffstat:
usr.bin/xlint/lint1/decl.c | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diffs (73 lines):
diff -r 910c07242058 -r 83f6dda01cea usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c Fri Apr 01 19:57:22 2022 +0000
+++ b/usr.bin/xlint/lint1/decl.c Fri Apr 01 20:29:37 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.253 2022/03/13 14:40:36 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.254 2022/04/01 20:29:37 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: decl.c,v 1.253 2022/03/13 14:40:36 rillig Exp $");
+__RCSID("$NetBSD: decl.c,v 1.254 2022/04/01 20:29:37 rillig Exp $");
#endif
#include <sys/param.h>
@@ -988,7 +988,7 @@
warning(228);
}
}
- } if (to == ARRAY) {
+ } else if (to == ARRAY) {
if (t == FUNC) {
/* array of function is illegal */
error(16);
@@ -1054,7 +1054,7 @@
* implementation-defined type".
*/
static void
-check_bit_field_type(sym_t *dsym, type_t **const inout_tp, tspec_t *inout_t)
+check_bit_field_type(sym_t *dsym, type_t **const inout_tp, tspec_t *inout_t)
{
type_t *tp = *inout_tp;
tspec_t t = *inout_t;
@@ -1335,7 +1335,7 @@
while (*tpp != NULL && *tpp != dcs->d_type)
tpp = &(*tpp)->t_subt;
if (*tpp == NULL)
- return decl;
+ return decl;
*tpp = tp = block_zero_alloc(sizeof(*tp));
tp->t_tspec = ARRAY;
@@ -1398,7 +1398,7 @@
*/
tpp = &(*tpp)->t_subt;
if (*tpp == NULL)
- return decl; /* see msg_347 */
+ return decl; /* see msg_347 */
*tpp = tp = block_zero_alloc(sizeof(*tp));
tp->t_tspec = FUNC;
@@ -2170,7 +2170,8 @@
t = INT;
} else if (t == USHORT) {
/* CONSTCOND */
- t = TARG_INT_MAX < TARG_USHRT_MAX || tflag ? UINT : INT;
+ t = TARG_INT_MAX < TARG_USHRT_MAX || tflag
+ ? UINT : INT;
}
}
@@ -2320,7 +2321,7 @@
n++;
}
- end:
+end:
if (msg)
/* old style definition */
print_previous_declaration(300, rdsym);
Home |
Main Index |
Thread Index |
Old Index