summaryrefslogtreecommitdiff
path: root/usr.bin/xlint/common/inittyp.c
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2023-07-08 09:35:35 +0000
committerrillig <rillig@NetBSD.org>2023-07-08 09:35:35 +0000
commitcfcdde557958fc701848686dd4db2d8611322218 (patch)
tree52ab3a76f7df198c01d88d9fcf32c24c02fdfeef /usr.bin/xlint/common/inittyp.c
parent0e51d5cfa05a6ba7bf41dc139ffdcf8cb336c118 (diff)
lint: clarify the meaning of 'portable size in bits' of a type
No functional change.
Diffstat (limited to 'usr.bin/xlint/common/inittyp.c')
-rw-r--r--usr.bin/xlint/common/inittyp.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/usr.bin/xlint/common/inittyp.c b/usr.bin/xlint/common/inittyp.c
index 7cf54335dfb..ee9263554b5 100644
--- a/usr.bin/xlint/common/inittyp.c
+++ b/usr.bin/xlint/common/inittyp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: inittyp.c,v 1.37 2023/07/03 07:03:19 rillig Exp $ */
+/* $NetBSD: inittyp.c,v 1.38 2023/07/08 09:35:35 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID)
-__RCSID("$NetBSD: inittyp.c,v 1.37 2023/07/03 07:03:19 rillig Exp $");
+__RCSID("$NetBSD: inittyp.c,v 1.38 2023/07/08 09:35:35 rillig Exp $");
#endif
#if defined(IS_LINT1)
@@ -49,12 +49,9 @@ __RCSID("$NetBSD: inittyp.c,v 1.37 2023/07/03 07:03:19 rillig Exp $");
#define INT_RSIZE (/*CONSTCOND*/INTPTR_TSPEC == LONG ? 3 : 4)
#ifdef IS_LINT1
-#define typeinfo( \
- name, signed_type, unsigned_type, \
- size_in_bits, portable_size_in_bits, \
- c) \
+#define typeinfo(name, signed_type, unsigned_type, size_in_bits, rank, c) \
{ /*CONSTCOND*/ \
- size_in_bits, portable_size_in_bits, \
+ size_in_bits, rank, \
signed_type, unsigned_type, \
(c) == 's' || (c) == 'u', \
(c) == 'u' || (c) == 'p', \
@@ -67,10 +64,7 @@ __RCSID("$NetBSD: inittyp.c,v 1.37 2023/07/03 07:03:19 rillig Exp $");
name, \
}
#else
-#define typeinfo( \
- name, signed_type, unsigned_type, \
- size_in_bits, portable_size_in_bits, \
- c) \
+#define typeinfo(name, signed_type, unsigned_type, size_in_bits, rank, c) \
{ /*CONSTCOND*/ \
signed_type, unsigned_type, \
(c) == 's' || (c) == 'u', \