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.7: document removed messages
details: https://anonhg.NetBSD.org/src/rev/f9f6a6f922c6
branches: trunk
changeset: 1023384:f9f6a6f922c6
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Sep 05 13:19:39 2021 +0000
description:
lint.7: document removed messages
Having just an empty string as the message was confusing.
diffstat:
usr.bin/xlint/lint1/err.c | 12 ++++++++----
usr.bin/xlint/lint1/makeman | 6 +++---
2 files changed, 11 insertions(+), 7 deletions(-)
diffs (61 lines):
diff -r 062353fef247 -r f9f6a6f922c6 usr.bin/xlint/lint1/err.c
--- a/usr.bin/xlint/lint1/err.c Sun Sep 05 12:47:10 2021 +0000
+++ b/usr.bin/xlint/lint1/err.c Sun Sep 05 13:19:39 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: err.c,v 1.142 2021/08/31 17:51:30 rillig Exp $ */
+/* $NetBSD: err.c,v 1.143 2021/09/05 13:19:39 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: err.c,v 1.142 2021/08/31 17:51:30 rillig Exp $");
+__RCSID("$NetBSD: err.c,v 1.143 2021/09/05 13:19:39 rillig Exp $");
#endif
#include <sys/types.h>
@@ -462,8 +462,12 @@
{
size_t i;
- for (i = 0; i < sizeof(msgs) / sizeof(msgs[0]); i++)
- printf("%zu\t%s\n", i, msgs[i]);
+ for (i = 0; i < sizeof(msgs) / sizeof(msgs[0]); i++) {
+ if (msgs[i][0] != '\0')
+ printf("%zu\t%s\n", i, msgs[i]);
+ else
+ printf("---\t(no longer used)\n");
+ }
}
/*
diff -r 062353fef247 -r f9f6a6f922c6 usr.bin/xlint/lint1/makeman
--- a/usr.bin/xlint/lint1/makeman Sun Sep 05 12:47:10 2021 +0000
+++ b/usr.bin/xlint/lint1/makeman Sun Sep 05 13:19:39 2021 +0000
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: makeman,v 1.3 2008/04/30 13:11:01 martin Exp $
+# $NetBSD: makeman,v 1.4 2021/09/05 13:19:39 rillig Exp $
#
# Copyright (c) 2000 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -30,7 +30,7 @@
cat << \__EOF
-.\" $NetBSD: makeman,v 1.3 2008/04/30 13:11:01 martin Exp $
+.\" $NetBSD: makeman,v 1.4 2021/09/05 13:19:39 rillig Exp $
.\"
.\" Copyright (c) 2000 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -58,7 +58,7 @@
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
-.Dd July 5, 2000
+.Dd September 5, 2021
.Dt LINT 7
.Os
.Sh NAME
Home |
Main Index |
Thread Index |
Old Index