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 lint1: remove option -m
details: https://anonhg.NetBSD.org/src/rev/14dbac578aad
branches: trunk
changeset: 378286:14dbac578aad
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Jul 29 10:45:00 2023 +0000
description:
lint1: remove option -m
The list of lint messages is only needed for generating the manual page
lint.7. Since 2022-07-06, that list is extracted from the source code
instead of compiling and then running lint1.
diffstat:
usr.bin/xlint/lint1/Makefile | 7 +------
usr.bin/xlint/lint1/err.c | 20 ++------------------
usr.bin/xlint/lint1/main1.c | 10 +++-------
3 files changed, 6 insertions(+), 31 deletions(-)
diffs (100 lines):
diff -r abf0a73e335d -r 14dbac578aad usr.bin/xlint/lint1/Makefile
--- a/usr.bin/xlint/lint1/Makefile Sat Jul 29 10:34:24 2023 +0000
+++ b/usr.bin/xlint/lint1/Makefile Sat Jul 29 10:45:00 2023 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.101 2023/07/29 10:34:24 rillig Exp $
+# $NetBSD: Makefile,v 1.102 2023/07/29 10:45:00 rillig Exp $
.include <bsd.own.mk>
@@ -35,11 +35,6 @@ BINDIR= /usr/libexec
CLEANFILES+= ${MAN} ${MAN}.date
-.if ${USETOOLS} == "yes"
-LINT1= ${TOOLDIR}/libexec/${MACHINE_GNU_PLATFORM}-lint1
-.endif
-LINT1?= ./${PROG}
-
${MAN}.date: err.c
${_MKTARGET_CREATE}
${TOOL_SED} -E \
diff -r abf0a73e335d -r 14dbac578aad usr.bin/xlint/lint1/err.c
--- a/usr.bin/xlint/lint1/err.c Sat Jul 29 10:34:24 2023 +0000
+++ b/usr.bin/xlint/lint1/err.c Sat Jul 29 10:45:00 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: err.c,v 1.213 2023/07/21 06:02:07 rillig Exp $ */
+/* $NetBSD: err.c,v 1.214 2023/07/29 10:45:00 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID)
-__RCSID("$NetBSD: err.c,v 1.213 2023/07/21 06:02:07 rillig Exp $");
+__RCSID("$NetBSD: err.c,v 1.214 2023/07/29 10:45:00 rillig Exp $");
#endif
#include <limits.h>
@@ -484,22 +484,6 @@ print_stack_trace(void)
}
/*
- * print a list of the messages with their ids
- */
-void
-msglist(void)
-{
- size_t 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");
- }
-}
-
-/*
* If Fflag is not set, lbasename() returns a pointer to the last
* component of the path, otherwise it returns the argument.
*/
diff -r abf0a73e335d -r 14dbac578aad usr.bin/xlint/lint1/main1.c
--- a/usr.bin/xlint/lint1/main1.c Sat Jul 29 10:34:24 2023 +0000
+++ b/usr.bin/xlint/lint1/main1.c Sat Jul 29 10:45:00 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main1.c,v 1.76 2023/07/29 07:49:14 rillig Exp $ */
+/* $NetBSD: main1.c,v 1.77 2023/07/29 10:45:00 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID)
-__RCSID("$NetBSD: main1.c,v 1.76 2023/07/29 07:49:14 rillig Exp $");
+__RCSID("$NetBSD: main1.c,v 1.77 2023/07/29 10:45:00 rillig Exp $");
#endif
#include <sys/types.h>
@@ -136,7 +136,7 @@ main(int argc, char *argv[])
setprogname(argv[0]);
- while ((c = getopt(argc, argv, "abceghmpq:rstuvwyzA:FPR:STX:")) != -1) {
+ while ((c = getopt(argc, argv, "abceghpq:rstuvwyzA:FPR:STX:")) != -1) {
switch (c) {
case 'a': aflag++; break;
case 'b': bflag = true; break;
@@ -194,10 +194,6 @@ main(int argc, char *argv[])
usage();
break;
- case 'm':
- msglist();
- return 0;
-
case 'R':
add_directory_replacement(optarg);
break;
Home |
Main Index |
Thread Index |
Old Index