Module Name:    src
Committed By:   rillig
Date:           Sun Dec  3 12:24:49 UTC 2023

Modified Files:
        src/usr.bin/xlint/common: lint.h
        src/usr.bin/xlint/lint1: tree.c
        src/usr.bin/xlint/lint2: lint2.h

Log Message:
lint: move function body brace to the left

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/usr.bin/xlint/common/lint.h
cvs rdiff -u -r1.584 -r1.585 src/usr.bin/xlint/lint1/tree.c
cvs rdiff -u -r1.24 -r1.25 src/usr.bin/xlint/lint2/lint2.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/xlint/common/lint.h
diff -u src/usr.bin/xlint/common/lint.h:1.44 src/usr.bin/xlint/common/lint.h:1.45
--- src/usr.bin/xlint/common/lint.h:1.44	Wed Sep 13 20:31:58 2023
+++ src/usr.bin/xlint/common/lint.h	Sun Dec  3 12:24:48 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: lint.h,v 1.44 2023/09/13 20:31:58 rillig Exp $	*/
+/*	$NetBSD: lint.h,v 1.45 2023/12/03 12:24:48 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -120,7 +120,8 @@ typedef	struct {
 extern	ttab_t	ttab[];
 
 static inline const ttab_t *
-type_properties(tspec_t t) {
+type_properties(tspec_t t)
+{
 	return ttab + t;
 }
 
@@ -154,12 +155,31 @@ typedef struct lint2_type type_t;
 #include "externs.h"
 
 static inline bool
-ch_isalnum(char ch) { return isalnum((unsigned char)ch) != 0; }
+ch_isalnum(char ch)
+{
+	return isalnum((unsigned char)ch) != 0;
+}
+
 static inline bool
-ch_isdigit(char ch) { return isdigit((unsigned char)ch) != 0; }
+ch_isdigit(char ch)
+{
+	return isdigit((unsigned char)ch) != 0;
+}
+
 static inline bool
-ch_isprint(char ch) { return isprint((unsigned char)ch) != 0; }
+ch_isprint(char ch)
+{
+	return isprint((unsigned char)ch) != 0;
+}
+
 static inline bool
-ch_isspace(char ch) { return isspace((unsigned char)ch) != 0; }
+ch_isspace(char ch)
+{
+	return isspace((unsigned char)ch) != 0;
+}
+
 static inline bool
-ch_isupper(char ch) { return isupper((unsigned char)ch) != 0; }
+ch_isupper(char ch)
+{
+	return isupper((unsigned char)ch) != 0;
+}

Index: src/usr.bin/xlint/lint1/tree.c
diff -u src/usr.bin/xlint/lint1/tree.c:1.584 src/usr.bin/xlint/lint1/tree.c:1.585
--- src/usr.bin/xlint/lint1/tree.c:1.584	Sun Dec  3 12:03:38 2023
+++ src/usr.bin/xlint/lint1/tree.c	Sun Dec  3 12:24:49 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: tree.c,v 1.584 2023/12/03 12:03:38 rillig Exp $	*/
+/*	$NetBSD: tree.c,v 1.585 2023/12/03 12:24:49 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID)
-__RCSID("$NetBSD: tree.c,v 1.584 2023/12/03 12:03:38 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.585 2023/12/03 12:24:49 rillig Exp $");
 #endif
 
 #include <float.h>
@@ -93,7 +93,8 @@ width_in_bits(const type_t *tp)
 }
 
 static int
-portable_rank_cmp(tspec_t t1, tspec_t t2) {
+portable_rank_cmp(tspec_t t1, tspec_t t2)
+{
 	const ttab_t *p1 = type_properties(t1), *p2 = type_properties(t2);
 	lint_assert(p1->tt_rank_kind == p2->tt_rank_kind);
 	lint_assert(p1->tt_rank_value > 0);

Index: src/usr.bin/xlint/lint2/lint2.h
diff -u src/usr.bin/xlint/lint2/lint2.h:1.24 src/usr.bin/xlint/lint2/lint2.h:1.25
--- src/usr.bin/xlint/lint2/lint2.h:1.24	Thu Jul 13 08:40:38 2023
+++ src/usr.bin/xlint/lint2/lint2.h	Sun Dec  3 12:24:49 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: lint2.h,v 1.24 2023/07/13 08:40:38 rillig Exp $ */
+/* $NetBSD: lint2.h,v 1.25 2023/12/03 12:24:49 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -186,7 +186,8 @@ typedef	struct hte {
 
 /* maps type indices into pointers to type structs */
 static inline type_t *
-TP(unsigned short type_id) {
+TP(unsigned short type_id)
+{
 	/* force sequence point for newly parsed type_id */
 	return tlst[type_id];
 }

Reply via email to