Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint lint: remove Tflag and pflag from common decla...
details: https://anonhg.NetBSD.org/src/rev/7d97b8bb5e13
branches: trunk
changeset: 1023075:7d97b8bb5e13
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Aug 22 14:50:06 2021 +0000
description:
lint: remove Tflag and pflag from common declarations
These flags are only needed by lint1 and lint2, but not by the driver
xlint.
No functional change.
diffstat:
usr.bin/xlint/common/externs.h | 9 +--------
usr.bin/xlint/common/inittyp.c | 10 +++++++---
usr.bin/xlint/lint1/externs1.h | 4 +++-
usr.bin/xlint/lint2/externs2.h | 5 +++--
4 files changed, 14 insertions(+), 14 deletions(-)
diffs (96 lines):
diff -r ec1b1c9587bb -r 7d97b8bb5e13 usr.bin/xlint/common/externs.h
--- a/usr.bin/xlint/common/externs.h Sun Aug 22 14:35:44 2021 +0000
+++ b/usr.bin/xlint/common/externs.h Sun Aug 22 14:50:06 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: externs.h,v 1.18 2021/08/03 17:44:58 rillig Exp $ */
+/* $NetBSD: externs.h,v 1.19 2021/08/22 14:50:06 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -32,13 +32,6 @@
*/
/*
- * main[12].c
- */
-extern bool pflag;
-/* Treat _Bool as incompatible to all other scalar types. */
-extern bool Tflag;
-
-/*
* inittyp.c
*/
extern void inittyp(void);
diff -r ec1b1c9587bb -r 7d97b8bb5e13 usr.bin/xlint/common/inittyp.c
--- a/usr.bin/xlint/common/inittyp.c Sun Aug 22 14:35:44 2021 +0000
+++ b/usr.bin/xlint/common/inittyp.c Sun Aug 22 14:50:06 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inittyp.c,v 1.24 2021/06/30 10:56:24 rillig Exp $ */
+/* $NetBSD: inittyp.c,v 1.25 2021/08/22 14:50:06 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,13 +37,17 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: inittyp.c,v 1.24 2021/06/30 10:56:24 rillig Exp $");
+__RCSID("$NetBSD: inittyp.c,v 1.25 2021/08/22 14:50:06 rillig Exp $");
#endif
#include <limits.h>
#include <stdlib.h>
-#include "lint.h"
+#if defined(IS_LINT1)
+#include "lint1.h"
+#else
+#include "lint2.h"
+#endif
/* various type information */
ttab_t ttab[NTSPEC];
diff -r ec1b1c9587bb -r 7d97b8bb5e13 usr.bin/xlint/lint1/externs1.h
--- a/usr.bin/xlint/lint1/externs1.h Sun Aug 22 14:35:44 2021 +0000
+++ b/usr.bin/xlint/lint1/externs1.h Sun Aug 22 14:50:06 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: externs1.h,v 1.129 2021/08/19 21:13:58 rillig Exp $ */
+/* $NetBSD: externs1.h,v 1.130 2021/08/22 14:50:06 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -42,6 +42,7 @@
extern bool Fflag;
extern bool gflag;
extern bool hflag;
+extern bool pflag;
extern bool rflag;
extern bool sflag;
extern bool tflag;
@@ -51,6 +52,7 @@
extern bool wflag;
extern bool zflag;
extern bool Sflag;
+extern bool Tflag;
extern bool Pflag;
extern void norecover(void);
diff -r ec1b1c9587bb -r 7d97b8bb5e13 usr.bin/xlint/lint2/externs2.h
--- a/usr.bin/xlint/lint2/externs2.h Sun Aug 22 14:35:44 2021 +0000
+++ b/usr.bin/xlint/lint2/externs2.h Sun Aug 22 14:50:06 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: externs2.h,v 1.11 2021/08/22 04:43:44 rillig Exp $ */
+/* $NetBSD: externs2.h,v 1.12 2021/08/22 14:50:06 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -44,7 +44,8 @@
extern bool Hflag;
extern bool hflag;
extern bool Fflag;
-
+extern bool pflag;
+extern bool Tflag;
/*
* hash.c
Home |
Main Index |
Thread Index |
Old Index