Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint2 lint: fix handling of __int128_t/__uint1...
details: https://anonhg.NetBSD.org/src/rev/65098e31c966
branches: trunk
changeset: 985034:65098e31c966
user: rillig <rillig%NetBSD.org@localhost>
date: Thu Aug 05 06:45:37 2021 +0000
description:
lint: fix handling of __int128_t/__uint128_t in lint2
Previously, lint exited with "bad type: J u".
diffstat:
usr.bin/xlint/lint2/read.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 08905b86d9ce -r 65098e31c966 usr.bin/xlint/lint2/read.c
--- a/usr.bin/xlint/lint2/read.c Thu Aug 05 06:34:42 2021 +0000
+++ b/usr.bin/xlint/lint2/read.c Thu Aug 05 06:45:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: read.c,v 1.46 2021/07/31 19:52:44 rillig Exp $ */
+/* $NetBSD: read.c,v 1.47 2021/08/05 06:45: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: read.c,v 1.46 2021/07/31 19:52:44 rillig Exp $");
+__RCSID("$NetBSD: read.c,v 1.47 2021/08/05 06:45:37 rillig Exp $");
#endif
#include <ctype.h>
@@ -838,6 +838,15 @@
t = QUAD;
}
break;
+#ifdef INT128_SIZE
+ case 'J':
+ if (s == 'u') {
+ t = UINT128;
+ } else if (s == '\0') {
+ t = INT128;
+ }
+ break;
+#endif
case 'D':
if (s == 's') {
t = FLOAT;
Home |
Main Index |
Thread Index |
Old Index